diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-24 11:49:51 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-24 11:49:51 +0000 |
| commit | e515ea1600ba84e8baac58fd636b7ce3c8275198 (patch) | |
| tree | 6e179a29e954d074b3b4815e4871ef47f856dc81 /sources/simulator/VSSimulation.java | |
| parent | 691692903a1ce2842bdcc88aa89acfd70bada4c9 (diff) | |
INitial new Protocol Editor.
Diffstat (limited to 'sources/simulator/VSSimulation.java')
| -rw-r--r-- | sources/simulator/VSSimulation.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sources/simulator/VSSimulation.java b/sources/simulator/VSSimulation.java index 7a7e545..9440f02 100644 --- a/sources/simulator/VSSimulation.java +++ b/sources/simulator/VSSimulation.java @@ -346,6 +346,7 @@ public class VSSimulation extends JPanel { if (processNum == simulationCanvas.getNumProcesses()) { tabbedPane.setEnabledAt(1, false); + tabbedPane.setEnabledAt(2, false); if (tabbedPane.getSelectedIndex() == 1) tabbedPane.setSelectedIndex(0); @@ -355,13 +356,16 @@ public class VSSimulation extends JPanel { if (processNum != simulationCanvas.getNumProcesses()) { VSProcess process = getSelectedProcess(); - VSProcessEditor editor = new VSProcessEditor(prefs, process); - tabbedPane.setComponentAt(1, editor.getContentPane()); + VSProcessEditor processEditor = new VSProcessEditor(prefs, process); + tabbedPane.setComponentAt(1, processEditor.getContentPane()); + VSProtocolEditor protocolEditor = new VSProtocolEditor(prefs, process); + tabbedPane.setComponentAt(2, protocolEditor.getContentPane()); } } }); tabbedPane.add(prefs.getString("lang.variables"), null); + tabbedPane.add(prefs.getString("lang.protocols"), null); editPanel.add(processesComboBox); editPanel.add(tabbedPane); @@ -382,9 +386,9 @@ public class VSSimulation extends JPanel { panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); if (localTasks) - panel.add(createLabelPanel(prefs.getString("lang.local"))); + panel.add(createLabelPanel(prefs.getString("lang.timed.local"))); else - panel.add(createLabelPanel(prefs.getString("lang.global"))); + panel.add(createLabelPanel(prefs.getString("lang.timed.global"))); JScrollPane scrollPane = new JScrollPane(createTaskTable(localTasks)); panel.add(scrollPane); |
