Merge branch 'master' into xcos-layout
[scilab.git] / scilab / modules / xcos / src / java / org / scilab / modules / xcos / block / BasicBlock.java
index 2847566..28ae4ae 100644 (file)
@@ -54,6 +54,7 @@ import org.scilab.modules.xcos.Xcos;
 import org.scilab.modules.xcos.XcosTab;
 import org.scilab.modules.xcos.actions.EditFormatAction;
 import org.scilab.modules.xcos.actions.ShowHideShadowAction;
+import org.scilab.modules.xcos.block.actions.AutoPositionSplitBlockAction;
 import org.scilab.modules.xcos.block.actions.BlockDocumentationAction;
 import org.scilab.modules.xcos.block.actions.BlockParametersAction;
 import org.scilab.modules.xcos.block.actions.BorderColorAction;
@@ -756,6 +757,14 @@ public class BasicBlock extends XcosCell implements Serializable {
         /*--- */
         format.addSeparator();
         /*--- */
+        MenuItem sbapMenuItem = AutoPositionSplitBlockAction.createMenu(graph);
+        sbapMenuItem.setText(XcosMessages.BLOCK_AUTO_POSITION_SPLIT_BLOCK_CONTEXTUAL);
+        sbapMenuItem.setEnabled(false);
+        menuList.put(AutoPositionSplitBlockAction.class, sbapMenuItem);
+        format.add(sbapMenuItem);
+        /*--- */
+        format.addSeparator();
+        /*--- */
         if (graph.getSelectionCells().length > 1) {
             format.add(BorderColorAction.createMenu(graph));
             format.add(FilledColorAction.createMenu(graph));