org.eclipse.gef.ui.actions.DeleteAction Java Examples
The following examples show how to use
org.eclipse.gef.ui.actions.DeleteAction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GraphConfig.java From olca-app with Mozilla Public License 2.0 | 5 votes |
private void registerStaticActions() { final ProductSystemGraphEditor editor = model.editor; actionRegistry.registerAction(ActionFactory.buildSupplyChainMenu(editor)); actionRegistry.registerAction(ActionFactory.removeSupplyChain(editor)); actionRegistry.registerAction(ActionFactory.removeAllConnections(editor)); actionRegistry.registerAction(ActionFactory.mark(editor)); actionRegistry.registerAction(ActionFactory.unmark(editor)); actionRegistry.registerAction(ActionFactory.saveImage(editor)); actionRegistry.registerAction(ActionFactory.expandAll(editor)); actionRegistry.registerAction(ActionFactory.collapseAll(editor)); actionRegistry.registerAction(ActionFactory.maximizeAll(editor)); actionRegistry.registerAction(ActionFactory.minimizeAll(editor)); actionRegistry.registerAction(ActionFactory.layoutMenu(editor)); actionRegistry.registerAction(ActionFactory.searchProviders(editor)); actionRegistry.registerAction(ActionFactory.searchRecipients(editor)); actionRegistry.registerAction(ActionFactory.open(editor)); actionRegistry.registerAction(ActionFactory.openMiniatureView(editor)); actionRegistry.registerAction(ActionFactory.showOutline()); actionRegistry.registerAction(new ZoomInAction(getZoomManager())); actionRegistry.registerAction(new ZoomOutAction(getZoomManager())); DeleteAction delAction = new DeleteAction((IWorkbenchPart) editor) { @Override protected ISelection getSelection() { return editor.getSite().getWorkbenchWindow().getSelectionService().getSelection(); } }; actionRegistry.registerAction(delAction); }