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 | |
| parent | 99fa4e29da7c3fa9df012378640442b59ebd1724 (diff) | |
'Variables tab' now updated too if expertMode has changed.
| -rw-r--r-- | ROADMAP | 4 | ||||
| -rw-r--r-- | sources/simulator/VSSimulation.java | 7 |
2 files changed, 7 insertions, 4 deletions
@@ -1,9 +1,9 @@ TODO: +Icon Toolbar Slow-Motion -Einfacher vs. erweiterter Modus -Prozesse hinzufuegen/loeschen koennen Neuen Protokolleditor bauen +Prozesse hinzufuegen/loeschen koennen "Himmelobjekt" Periodische Tasks anlegen koennen 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); |
