summaryrefslogtreecommitdiff
path: root/sources/prefs/editors/VSSimulationEditor.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-20 19:49:31 +0000
committerPaul Buetow <paul@buetow.org>2008-05-20 19:49:31 +0000
commit263d8a4f43ed2d319a88bd11e05112daf8133aa2 (patch)
tree0b5a4ead041e48c1712908be3ad44e3b60084097 /sources/prefs/editors/VSSimulationEditor.java
parentf9019a464024215fa166c435304db6b90391dd81 (diff)
New Tabs can be created. but not yet deleted.
Diffstat (limited to 'sources/prefs/editors/VSSimulationEditor.java')
-rw-r--r--sources/prefs/editors/VSSimulationEditor.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/sources/prefs/editors/VSSimulationEditor.java b/sources/prefs/editors/VSSimulationEditor.java
index 0aa6256..99b53bf 100644
--- a/sources/prefs/editors/VSSimulationEditor.java
+++ b/sources/prefs/editors/VSSimulationEditor.java
@@ -13,13 +13,15 @@ import utils.*;
import prefs.VSPrefs;
public class VSSimulationEditor extends VSEditorFrame {
- private boolean startNewVSSimulation;
+ private boolean startNewSimulation;
+ private VSSimulatorFrame simulatorFrame;
public VSSimulationEditor(VSPrefs prefs, Component relativeTo) {
super(prefs, relativeTo, prefs, prefs.getString("name")
+ " - " + prefs.getString("lang.prefs"));
+ this.simulatorFrame = (VSSimulatorFrame) relativeTo;
- startNewVSSimulation = true;
+ startNewSimulation = true;
init();
}
@@ -29,7 +31,7 @@ public class VSSimulationEditor extends VSEditorFrame {
+ (prefsCategory == ALL_PREFERENCES ? ".ext" : "")),
prefsCategory);
- startNewVSSimulation = false;
+ startNewSimulation = false;
init();
}
@@ -46,8 +48,9 @@ public class VSSimulationEditor extends VSEditorFrame {
frame.dispose();
- if (startNewVSSimulation)
- new VSSimulation(prefs, getFrame());
+ if (startNewSimulation)
+ simulatorFrame.addSimulation(
+ new VSSimulation(prefs, simulatorFrame));
} else {
super.actionPerformed(e);