Bug 6356 Outliner has to delete actions
Product version: smoke test for integration build 20011127 - load compilation unit into Java editor - open context menu in outliner observe: there are two delete actions
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
/**
 	 * Handles key events in viewer.
 	 */
	private void handleKeyPressed(KeyEvent event) {
		
		if (event.stateMask != 0)
			return;
		
		IAction action= null;
		if (event.character == SWT.DEL) {
			action= getAction("DeleteElement"); 
			if (action instanceof DeleteAction){
				
				DeleteAction deleteAction= (DeleteAction)action;
				deleteAction.update();
				if (deleteAction.isEnabled())
					deleteAction.run();
				return;
			}
		}	
		else if (event.keyCode == SWT.F4) {
			
			OpenTypeHierarchyUtil.open(getSelection(), fEditor.getSite().getWorkbenchWindow());
		}
			
		if (action != null && action.isEnabled())
			action.run();
	}
}