Search in sources :

Example 6 with KeyHandler

use of org.eclipse.gef.KeyHandler in project tdi-studio-se by Talend.

the class ErdiagramDiagramEditor method getCommonKeyHandler.

protected KeyHandler getCommonKeyHandler() {
    if (sharedKeyHandler == null) {
        sharedKeyHandler = new KeyHandler();
        sharedKeyHandler.put(KeyStroke.getPressed(SWT.DEL, 0), getActionRegistry().getAction(ActionFactory.DELETE.getId()));
    }
    return sharedKeyHandler;
}
Also used : KeyHandler(org.eclipse.gef.KeyHandler) GraphicalViewerKeyHandler(org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler)

Aggregations

KeyHandler (org.eclipse.gef.KeyHandler)6 ZoomInAction (org.eclipse.gef.ui.actions.ZoomInAction)4 ZoomOutAction (org.eclipse.gef.ui.actions.ZoomOutAction)4 ScalableFreeformRootEditPart (org.eclipse.gef.editparts.ScalableFreeformRootEditPart)3 GraphicalViewerKeyHandler (org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler)3 IAction (org.eclipse.jface.action.IAction)3 ContextMenuProvider (org.eclipse.gef.ContextMenuProvider)2 GraphicalViewer (org.eclipse.gef.GraphicalViewer)2 ZoomManager (org.eclipse.gef.editparts.ZoomManager)2 Action (org.eclipse.jface.action.Action)2 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)2 SchemaContextMenuProvider (com.cubrid.common.ui.er.SchemaContextMenuProvider)1 AddColumnAction (com.cubrid.common.ui.er.action.AddColumnAction)1 DeleteAction (com.cubrid.common.ui.er.action.DeleteAction)1 EditTableAction (com.cubrid.common.ui.er.action.EditTableAction)1 ImportERwinDataAction (com.cubrid.common.ui.er.action.ImportERwinDataAction)1 ModifyTableNameAction (com.cubrid.common.ui.er.action.ModifyTableNameAction)1 BrokerDBListMonitorPart (com.cubrid.cubridmanager.ui.mondashboard.editor.parts.BrokerDBListMonitorPart)1 BrokerMonitorPart (com.cubrid.cubridmanager.ui.mondashboard.editor.parts.BrokerMonitorPart)1 ClientMonitorPart (com.cubrid.cubridmanager.ui.mondashboard.editor.parts.ClientMonitorPart)1