MPROMEditor now calls its columns "Opcode" and "muPC"
[Mograsim.git] / plugins / net.mograsim.logic.model.editor / src / net / mograsim / logic / model / editor / ui / EditorGUI.java
index b89d587..6e61b1b 100644 (file)
@@ -1,5 +1,8 @@
 package net.mograsim.logic.model.editor.ui;
 
+import static net.mograsim.logic.model.preferences.RenderPreferences.DRAG_BUTTON;
+import static net.mograsim.logic.model.preferences.RenderPreferences.ZOOM_BUTTON;
+
 import java.io.IOException;
 
 import org.eclipse.swt.SWT;
@@ -73,8 +76,8 @@ public class EditorGUI
                setupBottomToolBar(innerComp);
 
                ZoomableCanvasUserInput userInput = new ZoomableCanvasUserInput(logicCanvas);
-               userInput.buttonDrag = 3;
-               userInput.buttonZoom = 2;
+               userInput.buttonDrag = editor.renderPrefs.getInt(DRAG_BUTTON);
+               userInput.buttonZoom = editor.renderPrefs.getInt(ZOOM_BUTTON);
                userInput.enableUserInput();
                new ZoomableCanvasOverlay(logicCanvas, null).enableScale();
        }