diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-22 15:55:53 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-22 15:55:53 +0000 |
| commit | d16ef68f4376eec8754d86b134a2f23b4daa13fb (patch) | |
| tree | 2baf693ca4f3796733317329cf48419f5912cce7 /sources | |
| parent | 99fa4e29da7c3fa9df012378640442b59ebd1724 (diff) | |
'Variables tab' now updated too if expertMode has changed.
Diffstat (limited to 'sources')
| -rw-r--r-- | sources/simulator/VSSimulation.java | 7 |
1 files changed, 5 insertions, 2 deletions
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); |
