private IAction getDeleteAction() {
if (deleteAction == null) {
deleteAction = new Action(){
@Override
public void run() {
Delete delete = new Delete(false);
ISelection s = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getSelectionService().getSelection();
delete.selectionChanged(this, s);
delete.run(this);
}
};
deleteAction.setActionDefinitionId("org.eclipse.ui.edit.delete"); //$NON-NLS-1$
IWorkbenchAction actionTemplate = ActionFactory.DELETE.create(PlatformUI.getWorkbench()
.getActiveWorkbenchWindow());