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;
}
Aggregations