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
import org.eclipse.jdt.internal.ui.refactoring.reorg.DeleteAction;
import org.eclipse.jdt.internal.ui.refactoring.reorg.PasteAction;
import org.eclipse.jdt.ui.IContextMenuConstants;
/**
 * Action group that adds the copy, cut, paste actions to a view part's context
 * menu and installs handlers for the corresponding global menu actions.
 * 
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 * 
 * @since 2.0
 */
public class CCPActionGroup extends ActionGroup {
	private IWorkbenchSite fSite;
	private Clipboard fClipboard;
 	private SelectionDispatchAction[] fActions;
 	private SelectionDispatchAction fDeleteAction;
	private SelectionDispatchAction fCopyAction;
	private SelectionDispatchAction fPasteAction;
	private SelectionDispatchAction fCutAction;
	
	/**
	 * Creates a new <code>CCPActionGroup</code>. The group requires that
	 * the selection provided by the view part's selection provider is of type
	 * <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
	 * 
	 * @param part the view part that owns this action group
	 */
	public CCPActionGroup(IViewPart  part) {