Bug 63641 Menu cleanup in JDT UI
* Navigate - Open type Hierarchy (F4) should become dynamic based on the preference setting 1) Open type hierarchy (F4) opens type hierarchy perspective 2) Show type hierarchy (F4) shows the type heirarchy view in the current perspective - Open Call Heirarchy TO Show Call Heirarchy - Show Outline (Ctrl+O) TO Quick Outline - Open type Hierarchy (Ctrl+t) TO Quick Type Hierarchy Package Explorer - Cut only show cut when the show members preference is enabled. cut is only ever enabled on source elements. Fallback is to only add cut when the action is enabled. Refactor - move introduce paramater to below change method signature
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/CCPActionGroup.java
super.fillActionBars(actionBars);
		actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), fDeleteAction);
		actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), fCopyAction);
		actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), fCutAction);
		actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), fPasteAction);
	}
	
	/* (non-Javadoc)
	 * Method declared in ActionGroup
	 */
	public void fillContextMenu(IMenuManager menu) {
		super.fillContextMenu(menu);
		for (int i= 0; i < fActions.length; i++) {
			menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, fActions[i]);
		}		
	}		
	
	/*
	 * @see ActionGroup#dispose()
	 */
	public void dispose() {
		super.dispose();
		if (fClipboard != null){
			fClipboard.dispose();
			fClipboard= null;
		}
		deregisterActionsAsSelectionChangeListeners();
	}
}