|
@@ -11,6 +11,7 @@
|
|
|
package org.yakindu.sct.ui.editor.editor;
|
|
|
|
|
|
import org.eclipse.gmf.runtime.common.ui.action.global.GlobalActionId;
|
|
|
+import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
|
|
|
import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramActionBarContributor;
|
|
|
import org.eclipse.ui.IActionBars;
|
|
|
import org.yakindu.sct.ui.editor.commands.DocumentationMenuAction;
|
|
@@ -28,6 +29,10 @@ public class StatechartDiagramActionbarContributor extends DiagramActionBarContr
|
|
|
// workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=346648
|
|
|
bars.setGlobalActionHandler(GlobalActionId.SAVE, null);
|
|
|
bars.getToolBarManager().add(new DocumentationMenuAction());
|
|
|
+
|
|
|
+ // remove 'arrange all' and 'arrange selection' actions
|
|
|
+ bars.getToolBarManager().remove(ActionIds.MENU_ARRANGE);
|
|
|
+ bars.getMenuManager().findMenuUsingPath(ActionIds.MENU_DIAGRAM).remove(ActionIds.MENU_ARRANGE);
|
|
|
}
|
|
|
|
|
|
@Override
|