summaryrefslogtreecommitdiff
path: root/sources/simulator
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-21 02:04:33 +0000
committerPaul Buetow <paul@buetow.org>2008-05-21 02:04:33 +0000
commit986ba9e27e6a3f6bced32d675246c85448b83f4f (patch)
tree9d6d2f68b512676f75c375a8c558147b725bdab6 /sources/simulator
parent6059b54e23e742db068da5e4a53b8b1b046db121 (diff)
OOkk
Diffstat (limited to 'sources/simulator')
-rw-r--r--sources/simulator/VSSimulation.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/sources/simulator/VSSimulation.java b/sources/simulator/VSSimulation.java
index bd19ff0..0216550 100644
--- a/sources/simulator/VSSimulation.java
+++ b/sources/simulator/VSSimulation.java
@@ -335,17 +335,24 @@ public class VSSimulation extends JPanel {
if (processNum != simulationCanvas.getNumProcesses()) {
variablesPanel.removeAll();
VSProcess process = getSelectedProcess();
- //VSEditor editor = new VSProcessEditor(prefs, process, VSEditor.ALL_PREFERENCES);
- //variablesPanel.add(editor);
+ VSProcessEditor editor = new VSProcessEditor(prefs, process);
+ variablesPanel.add(new JScrollPane(editor.getContentPane()));
}
}
});
variablesPanel = new JPanel();
globalVariablesPanel = new JPanel();
+
+ variablesPanel.setLayout(new BoxLayout(variablesPanel, BoxLayout.Y_AXIS));
+ globalVariablesPanel.setLayout(new BoxLayout(globalVariablesPanel, BoxLayout.Y_AXIS));
+
tabbedPane.add(prefs.getString("lang.variables"), variablesPanel);
tabbedPane.add(prefs.getString("lang.variables.global"), globalVariablesPanel);
+ VSSimulationEditor editor = new VSSimulationEditor(prefs, simulatorFrame);
+ globalVariablesPanel.add(new JScrollPane(editor.getContentPane()));
+
editPanel.add(processesComboBox);
editPanel.add(tabbedPane);