X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.plugin.core%2Fsrc%2Fnet%2Fmograsim%2Fplugin%2FMainPreferencePage.java;h=79a18f14ae0cc57c75a6c74451261acb2d4674e7;hb=13577856cd85c46f2cd4ad956332697bc820f425;hp=b647a0887959db1e042686d227f99d505005afb9;hpb=4c2b7a2100e55b5e4bf59666b9684d5a996bd0fb;p=Mograsim.git diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java index b647a088..79a18f14 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MainPreferencePage.java @@ -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