All Xcos menus are now created...callbacks are still missing
Vincent COUVERT [Wed, 30 Sep 2009 14:09:53 +0000 (16:09 +0200)]
39 files changed:
scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/CopyAction.java
scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/DefaultAction.java
scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/DeleteAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/InvertSelectionAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/SelectAllAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/graph/utils/ScilabGraphMessages.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/AboutXcosAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/BlockDocumentationAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CloseAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CodeGenerationAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CompileAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ExportAction.java [moved from scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NewAction.java with 70% similarity]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/FitDiagramToViewAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NewDiagramAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NewPaletteAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NormalViewAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/PrintAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/QuitAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/RegionToSuperblockAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SaveAsAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SaveAsInterfaceFunctionAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SetupAction.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/StartAction.java [moved from scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/RunAction.java with 76% similarity]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/StopAction.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskCreateAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskCustomizeAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskRemoveAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskSaveBlockGUIAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewBrowserAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewDetailsAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewDiagramBrowserAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewGetinfosAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewPaletteBrowserAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewViewportAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/XcosDemonstrationsAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/XcosDocumentationAction.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/XcosShortCut.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/utils/XcosMessages.java

index 7ef22e0..3d9388b 100644 (file)
@@ -23,7 +23,6 @@ import org.scilab.modules.graph.ScilabGraph;
 import org.scilab.modules.graph.utils.ScilabGraphMessages;
 import org.scilab.modules.gui.menuitem.MenuItem;
 import org.scilab.modules.gui.pushbutton.PushButton;
-import org.scilab.modules.xcos.utils.XcosMessages;
 
 public class CopyAction extends DefaultAction {
 
index fcb60c3..8061831 100644 (file)
@@ -44,9 +44,6 @@ public class DefaultAction extends CallBack {
        super(label);
        _scilabGraph = scilabGraph;
         }
-   public void actionPerformed(ActionEvent e) {
-       JOptionPane.showMessageDialog(null, "Not Implemented Now !!!", null, JOptionPane.ERROR_MESSAGE);
-    }
 
     /**
      * 
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/DeleteAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/DeleteAction.java
new file mode 100644 (file)
index 0000000..ac760b9
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.graph.actions;
+
+import java.awt.event.KeyEvent;
+
+import javax.swing.KeyStroke;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.utils.ScilabGraphMessages;
+import org.scilab.modules.gui.menuitem.MenuItem;
+
+public class DeleteAction extends DefaultAction {
+
+       private DeleteAction(ScilabGraph scilabGraph) {
+               super(ScilabGraphMessages.DELETE, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(ScilabGraphMessages.DELETE, null, new DeleteAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));
+       }
+       
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/InvertSelectionAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/InvertSelectionAction.java
new file mode 100644 (file)
index 0000000..71e7b3c
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.graph.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.utils.ScilabGraphMessages;
+import org.scilab.modules.gui.menuitem.MenuItem;
+
+public class InvertSelectionAction extends DefaultAction {
+
+       private InvertSelectionAction(ScilabGraph scilabGraph) {
+               super(ScilabGraphMessages.INVERT_SELECTION, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(ScilabGraphMessages.INVERT_SELECTION, null, new InvertSelectionAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/SelectAllAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/graph/actions/SelectAllAction.java
new file mode 100644 (file)
index 0000000..5c165b2
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.graph.actions;
+
+import java.awt.event.InputEvent;
+import java.awt.event.KeyEvent;
+
+import javax.swing.KeyStroke;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.utils.ScilabGraphMessages;
+import org.scilab.modules.gui.menuitem.MenuItem;
+
+public class SelectAllAction extends DefaultAction {
+
+       private SelectAllAction(ScilabGraph scilabGraph) {
+               super(ScilabGraphMessages.SELECT_ALL, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(ScilabGraphMessages.SELECT_ALL, null, new SelectAllAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_A, InputEvent.CTRL_MASK));
+       }
+}
index b4eb22f..982ac55 100644 (file)
@@ -24,5 +24,8 @@ public class ScilabGraphMessages {
        public static final String UNDO = Messages.gettext("Undo");
        public static final String ZOOM_IN = Messages.gettext("Zoom In");
        public static final String ZOOM_OUT = Messages.gettext("Zoom Out");
+    public static final String DELETE = Messages.gettext("Delete");
+    public static final String SELECT_ALL = Messages.gettext("Select all");
+    public static final String INVERT_SELECTION = Messages.gettext("Invert selection");
        
 }
index 5fc1283..5500d5e 100644 (file)
@@ -24,9 +24,12 @@ import javax.swing.JScrollPane;
 import org.scilab.modules.graph.ScilabGraph;
 import org.scilab.modules.graph.actions.CopyAction;
 import org.scilab.modules.graph.actions.CutAction;
+import org.scilab.modules.graph.actions.DeleteAction;
 import org.scilab.modules.graph.actions.GroupAction;
+import org.scilab.modules.graph.actions.InvertSelectionAction;
 import org.scilab.modules.graph.actions.PasteAction;
 import org.scilab.modules.graph.actions.RedoAction;
+import org.scilab.modules.graph.actions.SelectAllAction;
 import org.scilab.modules.graph.actions.UnGroupAction;
 import org.scilab.modules.graph.actions.UndoAction;
 import org.scilab.modules.graph.actions.ZoomInAction;
@@ -46,17 +49,43 @@ import org.scilab.modules.gui.toolbar.ScilabToolBar;
 import org.scilab.modules.gui.toolbar.ToolBar;
 import org.scilab.modules.gui.window.ScilabWindow;
 import org.scilab.modules.gui.window.Window;
+import org.scilab.modules.xcos.actions.AboutXcosAction;
+import org.scilab.modules.xcos.actions.BlockDocumentationAction;
+import org.scilab.modules.xcos.actions.CloseAction;
+import org.scilab.modules.xcos.actions.CodeGenerationAction;
+import org.scilab.modules.xcos.actions.CompileAction;
 import org.scilab.modules.xcos.actions.DumpAction;
-import org.scilab.modules.xcos.actions.RunAction;
+import org.scilab.modules.xcos.actions.ExportAction;
+import org.scilab.modules.xcos.actions.FitDiagramToViewAction;
+import org.scilab.modules.xcos.actions.NewPaletteAction;
+import org.scilab.modules.xcos.actions.NormalViewAction;
+import org.scilab.modules.xcos.actions.PrintAction;
+import org.scilab.modules.xcos.actions.QuitAction;
+import org.scilab.modules.xcos.actions.RegionToSuperblockAction;
+import org.scilab.modules.xcos.actions.StartAction;
 import org.scilab.modules.xcos.actions.SaveAction;
+import org.scilab.modules.xcos.actions.SaveAsAction;
+import org.scilab.modules.xcos.actions.SaveAsInterfaceFunctionAction;
 import org.scilab.modules.xcos.actions.SetupAction;
 import org.scilab.modules.xcos.actions.StopAction;
+import org.scilab.modules.xcos.actions.SuperblockMaskCreateAction;
+import org.scilab.modules.xcos.actions.SuperblockMaskCustomizeAction;
+import org.scilab.modules.xcos.actions.SuperblockMaskRemoveAction;
+import org.scilab.modules.xcos.actions.SuperblockMaskSaveBlockGUIAction;
+import org.scilab.modules.xcos.actions.ViewBrowserAction;
+import org.scilab.modules.xcos.actions.ViewDetailsAction;
+import org.scilab.modules.xcos.actions.ViewDiagramBrowserAction;
+import org.scilab.modules.xcos.actions.ViewGetinfosAction;
 import org.scilab.modules.xcos.actions.ViewInScicosAction;
+import org.scilab.modules.xcos.actions.ViewPaletteBrowserAction;
+import org.scilab.modules.xcos.actions.ViewViewportAction;
+import org.scilab.modules.xcos.actions.XcosDemonstrationsAction;
+import org.scilab.modules.xcos.actions.XcosDocumentationAction;
 import org.scilab.modules.xcos.block.BasicBlock;
 import org.scilab.modules.xcos.block.BlockReader;
 import org.scilab.modules.xcos.palette.XcosPalette;
 import org.scilab.modules.xcos.utils.XcosMessages;
-import org.scilab.modules.xcos.actions.NewAction;
+import org.scilab.modules.xcos.actions.NewDiagramAction;
 import org.scilab.modules.xcos.actions.OpenAction;
 
 import com.mxgraph.swing.mxGraphOutline;
@@ -208,59 +237,106 @@ public class Xcos extends SwingScilabTab implements Tab {
                Menu fileMenu = ScilabMenu.createMenu();
                fileMenu.setText(XcosMessages.FILE);
                fileMenu.setMnemonic('F');
-               fileMenu.add(NewAction.createMenu(scilabGraph));
+               
+               Menu newMenu = ScilabMenu.createMenu();
+               newMenu.setText(XcosMessages.NEW);
+               newMenu.add(NewDiagramAction.createMenu(scilabGraph));
+               newMenu.add(NewPaletteAction.createMenu(scilabGraph));
+               fileMenu.add(newMenu);
+
                fileMenu.add(OpenAction.createMenu(scilabGraph));
        fileMenu.addSeparator();
                fileMenu.add(SaveAction.createMenu(scilabGraph));
-               //fileMenu.add(SaveAsAction.createMenu(scilabGraph));
-               //fileMenu.add(ExportAction.createMenu(scilabGraph));
-               //fileMenu.add(SaveAsInterfFuncAction.createMenu(scilabGraph));
-       //fileMenu.addSeparator();
-               //fileMenu.add(PrintAction.createMenu(scilabGraph));
-       //fileMenu.addSeparator();
-               //fileMenu.add(CloseAction.createMenu(scilabGraph));
-       //fileMenu.addSeparator();
-               //fileMenu.add(QuitAction.createMenu(scilabGraph));
+               fileMenu.add(SaveAsAction.createMenu(scilabGraph));
+               fileMenu.add(ExportAction.createMenu(scilabGraph));
+               fileMenu.add(SaveAsInterfaceFunctionAction.createMenu(scilabGraph));
+       fileMenu.addSeparator();
+               fileMenu.add(PrintAction.createMenu(scilabGraph));
+       fileMenu.addSeparator();
+               fileMenu.add(CloseAction.createMenu(scilabGraph));
+       fileMenu.addSeparator();
+               fileMenu.add(QuitAction.createMenu(scilabGraph));
        fileMenu.addSeparator();
                fileMenu.add(DumpAction.dumpMenu(scilabGraph));
                fileMenu.add(ViewInScicosAction.viewInScicosMenu(scilabGraph));
                
                menuBar.add(fileMenu);
        
-       // EDIT
-       Menu edit = ScilabMenu.createMenu();
-       edit.setText("Edit");
-       edit.add(UndoAction.undoMenu(scilabGraph));
-       edit.add(RedoAction.redoMenu(scilabGraph));
-       edit.addSeparator();
-       edit.add(CutAction.cutMenu(scilabGraph));
-       edit.add(CopyAction.copyMenu(scilabGraph));
-       edit.add(PasteAction.pasteMenu(scilabGraph));
-       menuBar.add(edit);
-
-       // VIEW
-       Menu view = ScilabMenu.createMenu();
-       view.setText("View");
-       view.add(ZoomInAction.zoominMenu(scilabGraph));
-       view.add(ZoomOutAction.zoomoutMenu(scilabGraph));
-       menuBar.add(view);
-
-       // SHAPE
-       Menu shape = ScilabMenu.createMenu();
-       shape.setText("Shape");
-       shape.add(GroupAction.groupMenu(scilabGraph));
-       shape.add(UnGroupAction.ungroupMenu(scilabGraph));
-       menuBar.add(shape);
-
-       // SIMULATE
-       Menu simulate = ScilabMenu.createMenu();
-       simulate.setText("Simulate");
-       simulate.add(SetupAction.setupMenu(scilabGraph));
-       simulate.add(RunAction.runMenu(scilabGraph));
-       simulate.add(StopAction.stopMenu(scilabGraph));
-       menuBar.add(simulate);
+               /** Edit menu */
+               Menu edit = ScilabMenu.createMenu();
+               edit.setText(XcosMessages.EDIT);
+               edit.setMnemonic('E');
+               menuBar.add(edit);
+
+               edit.add(UndoAction.undoMenu(scilabGraph));
+               edit.add(RedoAction.redoMenu(scilabGraph));
+               edit.addSeparator();
+               edit.add(CutAction.cutMenu(scilabGraph));
+               edit.add(CopyAction.copyMenu(scilabGraph));
+               edit.add(PasteAction.pasteMenu(scilabGraph));
+               edit.add(DeleteAction.createMenu(scilabGraph));
+               edit.addSeparator();
+               edit.add(SelectAllAction.createMenu(scilabGraph));
+               edit.add(InvertSelectionAction.createMenu(scilabGraph));
+               edit.addSeparator();
+               edit.add(RegionToSuperblockAction.createMenu(scilabGraph));
+               Menu superblockMask = ScilabMenu.createMenu();
+               superblockMask.setText(XcosMessages.SUPERBLOCK_MASK);
+               superblockMask.add(SuperblockMaskCreateAction.createMenu(scilabGraph));
+               superblockMask.add(SuperblockMaskRemoveAction.createMenu(scilabGraph));
+               superblockMask.add(SuperblockMaskCustomizeAction.createMenu(scilabGraph));
+               superblockMask.add(SuperblockMaskSaveBlockGUIAction.createMenu(scilabGraph));
+               edit.add(superblockMask);
+               
+               /** View menu */
+               Menu view = ScilabMenu.createMenu();
+               view.setText(XcosMessages.VIEW);
+               view.setMnemonic('V');
+               menuBar.add(view);
+               
+               view.add(ZoomInAction.zoominMenu(scilabGraph));
+               view.add(ZoomOutAction.zoomoutMenu(scilabGraph));
+               view.add(FitDiagramToViewAction.createMenu(scilabGraph));
+               view.add(NormalViewAction.createMenu(scilabGraph));
+               view.addSeparator();
+               view.add(ViewPaletteBrowserAction.createMenu(scilabGraph));
+               view.add(ViewDiagramBrowserAction.createMenu(scilabGraph));
+               view.add(ViewViewportAction.createMenu(scilabGraph));
+               view.add(ViewGetinfosAction.createMenu(scilabGraph));
+               view.add(ViewDetailsAction.createMenu(scilabGraph));
+               view.add(ViewBrowserAction.createMenu(scilabGraph));
+
+               /** Simulation menu */
+               Menu simulate = ScilabMenu.createMenu();
+               simulate.setText(XcosMessages.SIMULATION);
+               view.setMnemonic('S');
+               menuBar.add(simulate);
+               
+               simulate.add(SetupAction.createMenu(scilabGraph));
+               simulate.add(CompileAction.createMenu(scilabGraph));
+               simulate.add(StartAction.createMenu(scilabGraph));
+               simulate.add(StopAction.createMenu(scilabGraph));
        
-       return menuBar;
+               /** Tools menu */
+               Menu tools = ScilabMenu.createMenu();
+               tools.setText(XcosMessages.TOOLS);
+               tools.setMnemonic('T');
+               menuBar.add(tools);
+               
+               tools.add(CodeGenerationAction.createMenu(scilabGraph));
+               
+               /** Help menu */
+               Menu help = ScilabMenu.createMenu();
+               help.setText(XcosMessages.HELP);
+               help.setMnemonic('H');
+               menuBar.add(help);
+               
+               help.add(XcosDocumentationAction.createMenu(scilabGraph));
+               help.add(BlockDocumentationAction.createMenu(scilabGraph));
+               help.add(XcosDemonstrationsAction.createMenu(scilabGraph));
+               help.add(AboutXcosAction.createMenu(scilabGraph));
+               
+               return menuBar;
     }
 
     public static ToolBar createToolBar(ScilabGraph scilabGraph) {
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/AboutXcosAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/AboutXcosAction.java
new file mode 100644 (file)
index 0000000..2b036c1
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan SIMON
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+
+public class AboutXcosAction extends DefaultAction {
+
+       public AboutXcosAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.ABOUT_XCOS,scilabGraph);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.ABOUT_XCOS, null, new AboutXcosAction(scilabGraph));
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.ABOUT_XCOS, null, new AboutXcosAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/BlockDocumentationAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/BlockDocumentationAction.java
new file mode 100644 (file)
index 0000000..a531970
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan SIMON
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+
+public class BlockDocumentationAction extends DefaultAction {
+
+       public BlockDocumentationAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.BLOCK_DOCUMENTATION,scilabGraph);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.BLOCK_DOCUMENTATION, null, new BlockDocumentationAction(scilabGraph));
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.BLOCK_DOCUMENTATION, null, new BlockDocumentationAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CloseAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CloseAction.java
new file mode 100644 (file)
index 0000000..7635e00
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.KeyEvent;
+
+import javax.swing.KeyStroke;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class CloseAction extends DefaultAction {
+
+       private CloseAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.CLOSE, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.CLOSE, null, new CloseAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_W, ActionEvent.CTRL_MASK));
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CodeGenerationAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CodeGenerationAction.java
new file mode 100644 (file)
index 0000000..0e0aa56
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan SIMON
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+
+public class CodeGenerationAction extends DefaultAction {
+
+       public CodeGenerationAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.CODE_GENERATION,scilabGraph);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.CODE_GENERATION, null, new CodeGenerationAction(scilabGraph));
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.CODE_GENERATION, null, new CodeGenerationAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CompileAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/CompileAction.java
new file mode 100644 (file)
index 0000000..80196de
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan SIMON
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+
+public class CompileAction extends DefaultAction {
+
+       public CompileAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.COMPILE,scilabGraph);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.COMPILE, null, new CompileAction(scilabGraph));
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.COMPILE, null, new CompileAction(scilabGraph), null);
+       }
+}
@@ -21,21 +21,20 @@ import org.scilab.modules.graph.ScilabGraph;
 import org.scilab.modules.graph.actions.DefaultAction;
 import org.scilab.modules.gui.menuitem.MenuItem;
 import org.scilab.modules.gui.pushbutton.PushButton;
-import org.scilab.modules.xcos.actions.NewAction;
 import org.scilab.modules.xcos.utils.XcosMessages;
 
-public class NewAction extends DefaultAction {
+public class ExportAction extends DefaultAction {
 
-       private NewAction(ScilabGraph scilabGraph) {
-               super(XcosMessages.NEW, scilabGraph);
+       private ExportAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.EXPORT, scilabGraph);
        }
 
        public static MenuItem createMenu(ScilabGraph scilabGraph) {
-               return createMenu(XcosMessages.NEW, null, new NewAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));
+               return createMenu(XcosMessages.EXPORT, null, new ExportAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));
        }
 
        public static PushButton createButton(ScilabGraph scilabGraph) {
-               return createButton(XcosMessages.NEW, "document-new.png", new NewAction(scilabGraph));
+               return createButton(XcosMessages.EXPORT, null, new ExportAction(scilabGraph));
        }
 
 }
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/FitDiagramToViewAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/FitDiagramToViewAction.java
new file mode 100644 (file)
index 0000000..9d5b2bd
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class FitDiagramToViewAction extends DefaultAction {
+
+       private FitDiagramToViewAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.FIT_DIAGRAM_TO_VIEW, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.FIT_DIAGRAM_TO_VIEW, null, new FitDiagramToViewAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NewDiagramAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NewDiagramAction.java
new file mode 100644 (file)
index 0000000..b99a884
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.KeyEvent;
+
+import javax.swing.KeyStroke;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.actions.NewDiagramAction;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class NewDiagramAction extends DefaultAction {
+
+       private NewDiagramAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.NEW_DIAGRAM, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.NEW_DIAGRAM, null, new NewDiagramAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.NEW_DIAGRAM, "document-new.png", new NewDiagramAction(scilabGraph));
+       }
+
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NewPaletteAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NewPaletteAction.java
new file mode 100644 (file)
index 0000000..129f280
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class NewPaletteAction extends DefaultAction {
+
+       private NewPaletteAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.NEW_PALETTE, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.NEW_PALETTE, null, new NewPaletteAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NormalViewAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/NormalViewAction.java
new file mode 100644 (file)
index 0000000..7ba1363
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class NormalViewAction extends DefaultAction {
+
+       private NormalViewAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.NORMAL_100, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.NORMAL_100, null, new NormalViewAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/PrintAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/PrintAction.java
new file mode 100644 (file)
index 0000000..0abbe98
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.KeyEvent;
+
+import javax.swing.KeyStroke;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class PrintAction extends DefaultAction {
+
+       private PrintAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.PRINT, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.PRINT, null, new PrintAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.CTRL_MASK));
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.PRINT, null, new PrintAction(scilabGraph));
+       }
+
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/QuitAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/QuitAction.java
new file mode 100644 (file)
index 0000000..b051ffe
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.KeyEvent;
+
+import javax.swing.KeyStroke;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class QuitAction extends DefaultAction {
+
+       private QuitAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.QUIT, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.QUIT, null, new QuitAction(scilabGraph), KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/RegionToSuperblockAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/RegionToSuperblockAction.java
new file mode 100644 (file)
index 0000000..b1386d9
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class RegionToSuperblockAction extends DefaultAction {
+
+       private RegionToSuperblockAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.REGION_TO_SUPERBLOCK, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.REGION_TO_SUPERBLOCK, null, new RegionToSuperblockAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SaveAsAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SaveAsAction.java
new file mode 100644 (file)
index 0000000..260b2c5
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class SaveAsAction extends DefaultAction {
+
+       private SaveAsAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.SAVE_AS, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.SAVE_AS, null, new SaveAsAction(scilabGraph), null);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.SAVE_AS, "document-save-as.png", new SaveAsAction(scilabGraph));
+       }
+
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SaveAsInterfaceFunctionAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SaveAsInterfaceFunctionAction.java
new file mode 100644 (file)
index 0000000..53971b0
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class SaveAsInterfaceFunctionAction extends DefaultAction {
+
+       private SaveAsInterfaceFunctionAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.SAVE_AS_INTERFACE_FUNCTION, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.SAVE_AS_INTERFACE_FUNCTION, null, new SaveAsInterfaceFunctionAction(scilabGraph), null);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.SAVE_AS_INTERFACE_FUNCTION, null, new SaveAsInterfaceFunctionAction(scilabGraph));
+       }
+
+}
index 8178eab..69ca02d 100644 (file)
@@ -52,11 +52,11 @@ public class SetupAction extends DefaultAction {
                super(XcosMessages.SETUP,scilabGraph);
        }
 
-       public static PushButton setupButton(ScilabGraph scilabGraph) {
+       public static PushButton createButton(ScilabGraph scilabGraph) {
                return createButton(XcosMessages.SETUP, null, new SetupAction(scilabGraph));
        }
 
-       public static MenuItem setupMenu(ScilabGraph scilabGraph) {
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
                return createMenu(XcosMessages.SETUP, null, new SetupAction(scilabGraph), null);
        }
 
@@ -25,18 +25,18 @@ import org.scilab.modules.gui.pushbutton.PushButton;
 import org.scilab.modules.xcos.XcosDiagram;
 import org.scilab.modules.xcos.utils.XcosMessages;
 
-public class RunAction  extends DefaultAction {
+public class StartAction  extends DefaultAction {
 
-       public RunAction(ScilabGraph scilabGraph) {
-               super(XcosMessages.RUN, scilabGraph);
+       public StartAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.START, scilabGraph);
        }
 
-       public static PushButton runButton(ScilabGraph scilabGraph) {
-               return createButton(XcosMessages.RUN, null, new RunAction(scilabGraph));
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.START, null, new StartAction(scilabGraph));
        }
 
-       public static MenuItem runMenu(ScilabGraph scilabGraph) {
-               return createMenu(XcosMessages.RUN, null, new RunAction(scilabGraph), null);
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.START, null, new StartAction(scilabGraph), null);
        }
 
        public void actionPerformed(ActionEvent e) {
index af24f45..8457267 100644 (file)
@@ -28,11 +28,11 @@ public class StopAction  extends DefaultAction {
                super(XcosMessages.STOP, scilabGraph);
        }
 
-       public static PushButton stopButton(ScilabGraph scilabGraph) {
+       public static PushButton createButton(ScilabGraph scilabGraph) {
                return createButton(XcosMessages.STOP, null, new StopAction(scilabGraph));
        }
 
-       public static MenuItem stopMenu(ScilabGraph scilabGraph) {
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
                return createMenu(XcosMessages.STOP, null, new StopAction(scilabGraph), null);
        }
 
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskCreateAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskCreateAction.java
new file mode 100644 (file)
index 0000000..7ea8726
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class SuperblockMaskCreateAction extends DefaultAction {
+
+       private SuperblockMaskCreateAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.CREATE, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.CREATE, null, new SuperblockMaskCreateAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskCustomizeAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskCustomizeAction.java
new file mode 100644 (file)
index 0000000..7f85c92
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class SuperblockMaskCustomizeAction extends DefaultAction {
+
+       private SuperblockMaskCustomizeAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.CUSTOMIZE, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.CUSTOMIZE, null, new SuperblockMaskCustomizeAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskRemoveAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskRemoveAction.java
new file mode 100644 (file)
index 0000000..c3ef8e2
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class SuperblockMaskRemoveAction extends DefaultAction {
+
+       private SuperblockMaskRemoveAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.REMOVE, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.REMOVE, null, new SuperblockMaskRemoveAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskSaveBlockGUIAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/SuperblockMaskSaveBlockGUIAction.java
new file mode 100644 (file)
index 0000000..8245099
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class SuperblockMaskSaveBlockGUIAction extends DefaultAction {
+
+       private SuperblockMaskSaveBlockGUIAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.SAVE_BLOCK_GUI, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.SAVE_BLOCK_GUI, null, new SuperblockMaskSaveBlockGUIAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewBrowserAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewBrowserAction.java
new file mode 100644 (file)
index 0000000..82578b4
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class ViewBrowserAction extends DefaultAction {
+
+       private ViewBrowserAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.BROWSER, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.BROWSER, null, new ViewBrowserAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewDetailsAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewDetailsAction.java
new file mode 100644 (file)
index 0000000..54eba12
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class ViewDetailsAction extends DefaultAction {
+
+       private ViewDetailsAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.DETAILS, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.DETAILS, null, new ViewDetailsAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewDiagramBrowserAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewDiagramBrowserAction.java
new file mode 100644 (file)
index 0000000..279f0b9
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class ViewDiagramBrowserAction extends DefaultAction {
+
+       private ViewDiagramBrowserAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.DIAGRAM_BROWSER, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.DIAGRAM_BROWSER, null, new ViewDiagramBrowserAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewGetinfosAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewGetinfosAction.java
new file mode 100644 (file)
index 0000000..bbb87f6
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class ViewGetinfosAction extends DefaultAction {
+
+       private ViewGetinfosAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.GET_INFOS, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.GET_INFOS, null, new ViewGetinfosAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewPaletteBrowserAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewPaletteBrowserAction.java
new file mode 100644 (file)
index 0000000..7e2e1a1
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class ViewPaletteBrowserAction extends DefaultAction {
+
+       private ViewPaletteBrowserAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.PALETTE_BROWSER, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.PALETTE_BROWSER, null, new ViewPaletteBrowserAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewViewportAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/ViewViewportAction.java
new file mode 100644 (file)
index 0000000..88016dd
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+ * 
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at    
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+public class ViewViewportAction extends DefaultAction {
+
+       private ViewViewportAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.VIEWPORT, scilabGraph);
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.VIEWPORT, null, new ViewViewportAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/XcosDemonstrationsAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/XcosDemonstrationsAction.java
new file mode 100644 (file)
index 0000000..4e2c47b
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan SIMON
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+
+public class XcosDemonstrationsAction extends DefaultAction {
+
+       public XcosDemonstrationsAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.XCOS_DEMONSTRATIONS,scilabGraph);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.XCOS_DEMONSTRATIONS, null, new XcosDemonstrationsAction(scilabGraph));
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.XCOS_DEMONSTRATIONS, null, new XcosDemonstrationsAction(scilabGraph), null);
+       }
+}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/XcosDocumentationAction.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/actions/XcosDocumentationAction.java
new file mode 100644 (file)
index 0000000..e3dfeb7
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - DIGITEO - Allan SIMON
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+package org.scilab.modules.xcos.actions;
+
+import org.scilab.modules.graph.ScilabGraph;
+import org.scilab.modules.graph.actions.DefaultAction;
+import org.scilab.modules.gui.menuitem.MenuItem;
+import org.scilab.modules.gui.pushbutton.PushButton;
+import org.scilab.modules.xcos.utils.XcosMessages;
+
+
+public class XcosDocumentationAction extends DefaultAction {
+
+       public XcosDocumentationAction(ScilabGraph scilabGraph) {
+               super(XcosMessages.XCOS_DOCUMENTATION,scilabGraph);
+       }
+
+       public static PushButton createButton(ScilabGraph scilabGraph) {
+               return createButton(XcosMessages.XCOS_DOCUMENTATION, null, new XcosDocumentationAction(scilabGraph));
+       }
+
+       public static MenuItem createMenu(ScilabGraph scilabGraph) {
+               return createMenu(XcosMessages.XCOS_DOCUMENTATION, null, new XcosDocumentationAction(scilabGraph), null);
+       }
+}
index 768dd79..928c0b3 100644 (file)
@@ -26,7 +26,6 @@ import org.scilab.modules.graph.actions.UndoAction;
 import org.scilab.modules.graph.actions.ZoomInAction;
 import org.scilab.modules.graph.actions.ZoomOutAction;
 
-import com.mxgraph.swing.mxGraphComponent;
 import com.mxgraph.swing.handler.mxKeyboardHandler;
 import com.mxgraph.swing.util.mxGraphActions;
 
index dc79edd..52be9d4 100644 (file)
@@ -16,37 +16,56 @@ import org.scilab.modules.localization.Messages;
 public class XcosMessages {
        /** File menu */
     public static final String FILE = Messages.gettext("File");
-    public static final String NEW = Messages.gettext("New") + "...";
+    public static final String NEW = Messages.gettext("New");
+    public static final String NEW_DIAGRAM = Messages.gettext("New diagram") + "...";
+    public static final String NEW_PALETTE = Messages.gettext("New palette") + "...";
     public static final String OPEN = Messages.gettext("Open") + "...";
-    public static final String SAVE = Messages.gettext("Save") + "...";
+    public static final String SAVE = Messages.gettext("Save");
+    public static final String SAVE_AS = Messages.gettext("Save as") + "...";
+    public static final String EXPORT = Messages.gettext("Export") + "...";
+    public static final String SAVE_AS_INTERFACE_FUNCTION = Messages.gettext("Save as interface function") + "...";
+    public static final String PRINT = Messages.gettext("Print") + "...";
+    public static final String CLOSE = Messages.gettext("Close");
+    public static final String QUIT = Messages.gettext("Quit");
     
+    public static final String DUMP = Messages.gettext("Dump");
+    public static final String VIEW_IN_SCICOS = Messages.gettext("View in Scicos");
+
     /** Edit Menu */
-    public static final String EDIT = Messages.gettext("Edit") + "...";
+    public static final String EDIT = Messages.gettext("Edit");
+    public static final String REGION_TO_SUPERBLOCK = Messages.gettext("Region to superblock");
+    public static final String SUPERBLOCK_MASK = Messages.gettext("Superblock mask");
+    public static final String CREATE = Messages.gettext("Create");
+    public static final String REMOVE = Messages.gettext("Remove");
+    public static final String CUSTOMIZE = Messages.gettext("Customize") + "...";
+    public static final String SAVE_BLOCK_GUI = Messages.gettext("Save block GUI");
+    
+    /** View Menu */
+    public static final String VIEW = Messages.gettext("View");
+    public static final String FIT_DIAGRAM_TO_VIEW = Messages.gettext("Fit diagram to view");
+    public static final String NORMAL_100 = Messages.gettext("Normal 100%");
+    public static final String PALETTE_BROWSER = Messages.gettext("Palette browser");
+    public static final String DIAGRAM_BROWSER = Messages.gettext("Diagram browser");
+    public static final String VIEWPORT = Messages.gettext("Viewport");
+    public static final String GET_INFOS = Messages.gettext("Get infos");
+    public static final String DETAILS = Messages.gettext("Details");
+    public static final String BROWSER = Messages.gettext("Browser");
     
     /** Simulation menu */
+    public static final String SIMULATION = Messages.gettext("Simulation");
     public static final String SETUP = Messages.gettext("Setup");
-    public static final String RUN = Messages.gettext("Run");
+    public static final String COMPILE = Messages.gettext("Compile");
+    public static final String START = Messages.gettext("Start");
     public static final String STOP = Messages.gettext("Stop");
     
+    /** Tools menu */
+    public static final String TOOLS = Messages.gettext("Tools");
+    public static final String CODE_GENERATION = Messages.gettext("Code generation");
     
-    public static final String DUMP = Messages.gettext("Dump");
-    public static final String VIEW_IN_SCICOS = Messages.gettext("View in Scicos");
-   
-    
-    
-    public static final String SEARCH = Messages.gettext("Search");
-    public static final String VIEW = Messages.gettext("View");
-    public static final String DOCUMENT = Messages.gettext("Document");
-    public static final String EXECUTE = Messages.gettext("Execute");
-    public static final String SYNTAX_TYPE = Messages.gettext("Syntax Type");
-    public static final String ENCODING_TYPE = Messages.gettext("Encoding Type");
-    public static final String RECENT_FILES = Messages.gettext("Recent Files");
-    
-    public static final String FILE_DOESNT_EXIST = Messages.gettext( "This file doesn't exist\n Do you want to create it?");
-    public static final String CLOSE_TAB_TIP = Messages.gettext("close this tab");
-    public static final String FILE_MODIFIED = Messages.gettext("This file has been modified since last save\nsave it?");
-    public static final String REPLACE_FILE_TITLE = Messages.gettext("This file has been modified since last save\nsave it?");
-    public static final String FILE_ALREADY_EXIST = Messages.gettext("File already exists");
-    public static final String UNTITLED = Messages.gettext("Untitled ");
-
+    /** Help menu */
+    public static final String HELP = Messages.gettext("Help");
+    public static final String XCOS_DOCUMENTATION = Messages.gettext("Xcos documentation");
+    public static final String BLOCK_DOCUMENTATION = Messages.gettext("Block documentation");
+    public static final String XCOS_DEMONSTRATIONS = Messages.gettext("Xcos demonstrations");
+    public static final String ABOUT_XCOS = Messages.gettext("About Xcos") + "...";
 }