Preferences: continue to connect SciNotes
[scilab.git] / scilab / modules / scinotes / src / java / org / scilab / modules / scinotes / SciNotesGUI.java
index 3fc383d..b754f9f 100644 (file)
@@ -91,8 +91,6 @@ public final class SciNotesGUI {
         mainWindow.addTab(editorInstance);
 
         // Set SciNotes Window position /size
-        mainWindow.setPosition(ConfigSciNotesManager.getMainWindowPosition());
-        mainWindow.setDims(ConfigSciNotesManager.getMainWindowSize());
         mainWindow.setTitle(title);
         mainWindow.setVisible(true);
 
@@ -110,6 +108,16 @@ public final class SciNotesGUI {
     }
 
     /**
+     * Initialize SciNotes
+     * @param editorInstance SciNotes
+     */
+    public static void reinitMenus(SciNotes editorInstance) {
+        mapMenuBar.remove(editorInstance);
+        mapPopup.remove(editorInstance);
+        editorInstance.setMenuBar(generateMenuBar(editorInstance));
+    }
+
+    /**
      * @param editor the editor
      * @return the infobar of the editor
      */