Added short titles for MPM columns
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / MainPreferencePage.java
index b647a08..79a18f1 100644 (file)
@@ -1,6 +1,7 @@
 package net.mograsim.plugin;
 
 import org.eclipse.jface.preference.BooleanFieldEditor;
+import org.eclipse.jface.preference.ComboFieldEditor;
 import org.eclipse.jface.preference.FieldEditorPreferencePage;
 import org.eclipse.jface.preference.IntegerFieldEditor;
 import org.eclipse.swt.widgets.Composite;
@@ -9,6 +10,9 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
 
 public class MainPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage
 {
+       private static final String[][] MOUSE_BUTTONS = { { "left", "1" }, { "middle", "2" }, { "right", "3" }, { "4th", "4" },
+                       { "5th", "5" } };
+
        public MainPreferencePage()
        {
                super(GRID);
@@ -26,7 +30,12 @@ public class MainPreferencePage extends FieldEditorPreferencePage implements IWo
                Composite parent = getFieldEditorParent();
                addField(new BooleanFieldEditor("net.mograsim.logic.model.debug.openhlsshell", "Open the debug HLS shell", parent));
                addField(new IntegerFieldEditor("net.mograsim.logic.model.debug.hlsshelldepth",
-                               "Depth of components to list in the debug HLS shell", parent));
+                               "Depth of components to list in the debug HLS shell (0: unbounded)", parent));
+               addField(new ComboFieldEditor("net.mograsim.logic.model.button.action", "Mouse button for actions", MOUSE_BUTTONS, parent));
+               addField(new ComboFieldEditor("net.mograsim.logic.model.button.drag", "Mouse button for dragging", MOUSE_BUTTONS, parent));
+               addField(new ComboFieldEditor("net.mograsim.logic.model.button.zoom", "Mouse button for zooming", MOUSE_BUTTONS, parent));
+               addField(new BooleanFieldEditor("net.mograsim.plugin.core.editors.mpm.bitsascolumnname",
+                               "Use the raw bit indices of MPM columns as column titles in the MPM editor", parent));
                // TODO add other preferences
        }
 }
\ No newline at end of file