diff options
Diffstat (limited to 'sources/simulator/VSSimulation.java')
| -rw-r--r-- | sources/simulator/VSSimulation.java | 11 |
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); |
