From 263d8a4f43ed2d319a88bd11e05112daf8133aa2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 20 May 2008 19:49:31 +0000 Subject: New Tabs can be created. but not yet deleted. --- sources/prefs/editors/VSSimulationEditor.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'sources/prefs/editors/VSSimulationEditor.java') 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); -- cgit v1.2.3