summaryrefslogtreecommitdiff
path: root/sources/prefs/editors/VSSimulatorEditor.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-12 21:19:36 +0300
committerPaul Buetow <paul@buetow.org>2025-06-12 21:19:36 +0300
commit5c5f252d5c7a2bdfefd4fbe54a7ae64537a64874 (patch)
tree1a4741441c7463cd3b5c97cca98fbfd1bc91519f /sources/prefs/editors/VSSimulatorEditor.java
parentea4f22311b639561856f37c8ac872af2cd9d55dd (diff)
Restructure project to use Maven exclusively and bump to v1.0.1-SNAPSHOT
- Remove legacy Ant build system (build.xml, sources/ directory) - Migrate to Maven-only build with standard directory structure - Add comprehensive Maven documentation and JAVA_HOME setup for Fedora - Update pom.xml with exec plugin and bump version to 1.0.1-SNAPSHOT - Add CLAUDE.md for development guidance - Update README.md with detailed build/run/clean instructions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'sources/prefs/editors/VSSimulatorEditor.java')
-rw-r--r--sources/prefs/editors/VSSimulatorEditor.java120
1 files changed, 0 insertions, 120 deletions
diff --git a/sources/prefs/editors/VSSimulatorEditor.java b/sources/prefs/editors/VSSimulatorEditor.java
deleted file mode 100644
index 9ee0e58..0000000
--- a/sources/prefs/editors/VSSimulatorEditor.java
+++ /dev/null
@@ -1,120 +0,0 @@
-package prefs.editors;
-
-import java.awt.event.ActionEvent;
-
-import javax.swing.JButton;
-import javax.swing.JPanel;
-
-import prefs.VSPrefs;
-import simulator.VSSimulator;
-import simulator.VSSimulatorFrame;
-
-/**
- * The class VSSimulatorEditor, is for editing a VSSimulator object.
- *
- * @author Paul C. Buetow
- */
-public class VSSimulatorEditor extends VSAbstractBetterEditor {
- /** The constant OPENED_NEW_WINDOW */
- public static final boolean OPENED_NEW_WINDOW = true;
-
- /** The constant OPENED_NEW_TAB */
- public static final boolean OPENED_NEW_TAB = false;
-
- /** The simulator frame. */
- private VSSimulatorFrame simulatorFrame;
-
- /** The simulator. */
- private VSSimulator simulator;
-
- /** The TAKEOVE r_ button. */
- public static boolean TAKEOVER_BUTTON;
-
- /** The dont start new simulator. */
- private boolean dontStartNewSimulator;
-
- /** Open a new simulator window. */
- private boolean openedNewWindow;
-
- /**
- * Instantiates a new VSSimulatorEditor object.
- *
- * @param prefs the prefs
- * @param simulatorFrame the simulator frame
- * @param simulator the simulator
- */
- public VSSimulatorEditor(VSPrefs prefs, VSSimulatorFrame simulatorFrame,
- VSSimulator simulator) {
- super(prefs, prefs, prefs.getString("lang.name")
- + " - " + prefs.getString("lang.prefs"));
- this.dontStartNewSimulator = true;//simulator != null;
- this.simulatorFrame = simulatorFrame;
- this.simulator = simulator;
- }
-
- /**
- * Instantiates a new VSSimulatorEditor object.
- *
- * @param prefs the prefs
- * @param simulatorFrame the simulator frame
- */
- public VSSimulatorEditor(VSPrefs prefs, VSSimulatorFrame simulatorFrame,
- boolean openedNewWindow) {
- super(prefs, prefs, prefs.getString("lang.name")
- + " - " + prefs.getString("lang.prefs"));
- this.simulatorFrame = simulatorFrame;
- this.openedNewWindow = openedNewWindow;
- }
-
- /* (non-Javadoc)
- * @see prefs.editors.VSAbstractBetterEditor#addToButtonPanelFront(
- * javax.swing.JPanel)
- */
- protected void addToButtonPanelFront(JPanel buttonPanel) {
- if (TAKEOVER_BUTTON) {
- TAKEOVER_BUTTON = false;
- JButton takeoverButton = new JButton(
- prefs.getString("lang.takeover"));
- takeoverButton.setMnemonic(prefs.getInteger("keyevent.takeover"));
- takeoverButton.addActionListener(this);
- buttonPanel.add(takeoverButton);
- }
- }
-
- /* (non-Javadoc)
- * @see prefs.editors.VSAbstractBetterEditor#actionPerformed(
- * java.awt.event.ActionEvent)
- */
- public void actionPerformed(ActionEvent e) {
- String actionCommand = e.getActionCommand();
-
- if (actionCommand.equals(prefs.getString("lang.takeover"))) {
- savePrefs();
-
- if (simulator != null) {
- if (expertModeChanged())
- simulator.fireExpertModeChanged();
- simulator.updateFromPrefs();
- }
-
- } else if (actionCommand.equals(prefs.getString("lang.cancel"))) {
- if (!dontStartNewSimulator && openedNewWindow)
- simulatorFrame.dispose();
-
- } else if (actionCommand.equals(prefs.getString("lang.ok"))) {
- savePrefs();
- if (expertModeChanged()) {
- if (simulator != null)
- simulator.fireExpertModeChanged();
- }
- if (!dontStartNewSimulator)
- simulatorFrame.addSimulator(new VSSimulator(prefsToEdit,
- simulatorFrame));
- else if (simulator != null)
- simulator.updateFromPrefs();
-
- } else {
- super.actionPerformed(e);
- }
- }
-}