From d16ef68f4376eec8754d86b134a2f23b4daa13fb Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 22 May 2008 15:55:53 +0000 Subject: 'Variables tab' now updated too if expertMode has changed. --- sources/simulator/VSSimulation.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sources/simulator/VSSimulation.java') diff --git a/sources/simulator/VSSimulation.java b/sources/simulator/VSSimulation.java index 4751f4a..fcdff39 100644 --- a/sources/simulator/VSSimulation.java +++ b/sources/simulator/VSSimulation.java @@ -899,8 +899,11 @@ public class VSSimulation extends JPanel { tabbedPane.setSelectedIndex(selectedIndex); /* Update the 'Variables tab' */ - - + if (getSelectedProcessNum() != simulationCanvas.getNumProcesses()) { + VSProcess process = getSelectedProcess(); + VSProcessEditor editor = new VSProcessEditor(prefs, process); + tabbedPane.setComponentAt(1, editor.getContentPane()); + } /* Update the tools panel */ loggingPanel.remove(1); -- cgit v1.2.3