Added the two Combos mentioned in the prev. commit to test them.
authorChristian Femers <femers@in.tum.de>
Tue, 24 Sep 2019 04:28:12 +0000 (06:28 +0200)
committerChristian Femers <femers@in.tum.de>
Tue, 24 Sep 2019 04:28:12 +0000 (06:28 +0200)
While one is only there for experiments, the other can later be used to
switch active projects.

plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/views/LogicUIPart.java

index 8825ba9..cf883d2 100644 (file)
@@ -23,6 +23,9 @@ import net.mograsim.machine.mi.AssignableMicroInstructionMemory;
 import net.mograsim.plugin.EclipsePreferences;
 import net.mograsim.plugin.MachineContext;
 import net.mograsim.plugin.MograsimActivator;
+import net.mograsim.plugin.nature.MachineContextSwtTools;
+import net.mograsim.plugin.nature.MachineContextSwtTools.MachineCombo;
+import net.mograsim.plugin.nature.MachineContextSwtTools.MograsimProjectCombo;
 import net.mograsim.plugin.tables.DisplaySettings;
 import net.mograsim.plugin.tables.mi.ActiveInstructionPreviewContentProvider;
 import net.mograsim.plugin.tables.mi.InstructionTable;
@@ -90,7 +93,11 @@ public class LogicUIPart extends ViewPart
        private void addSimulationControlWidgets(Composite parent)
        {
                Composite c = new Composite(parent, SWT.NONE);
-               c.setLayout(new GridLayout(4, false));
+               c.setLayout(new GridLayout(6, false));
+
+               MograsimProjectCombo projectCombo = MachineContextSwtTools.createMograsimProjectSelector(c, SWT.NONE);
+               MachineCombo machineCombo = MachineContextSwtTools.createMachineSelector(c, SWT.NONE);
+
                Button pauseButton = new Button(c, SWT.TOGGLE);
                pauseButton.setSelection(true);
                setPauseText(pauseButton, false);