line number event is now ticked at starting of xpad
Sylvestre Koumar [Mon, 21 Sep 2009 07:25:13 +0000 (09:25 +0200)]
scilab/modules/xpad/src/java/org/scilab/modules/xpad/actions/LineNumbersAction.java

index 21c41d9..50c686a 100644 (file)
@@ -31,6 +31,8 @@ public class LineNumbersAction extends DefaultCheckAction {
     }
 
     public static CheckBoxMenuItem createCheckBoxMenu(Xpad editor) {
-       return createCheckBoxMenu("Line Numbers", null, new LineNumbersAction(editor), KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
+    CheckBoxMenuItem lineNumber = createCheckBoxMenu("Line Numbers", null, new LineNumbersAction(editor), KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
+    lineNumber.setChecked(true);
+       return lineNumber;
     }
 }