Bug 7127 'refactor' menu missing from the type hierarchy perspective
the 'refactor' menu is missing from the type hierarchy perspective
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java
* @return a new selection dialog
	 * @exception JavaModelException if the selection dialog could not be opened
	 */
	public static SelectionDialog createTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter) throws JavaModelException {
		Assert.isTrue((style | IJavaElementSearchConstants.CONSIDER_TYPES) == IJavaElementSearchConstants.CONSIDER_TYPES);
		if (multipleSelection) {
			MultiTypeSelectionDialog dialog= new MultiTypeSelectionDialog(parent, context, scope, style);
			dialog.setFilter(filter);
			return dialog;			
		} else {
			TypeSelectionDialog dialog= new TypeSelectionDialog(parent, context, scope, style);
			dialog.setFilter(filter);
			return dialog;
		}
	}
	/**
	 * @see createTypeDialog(Shell,IRunnableContext,IJavaSearchScope,int,boolean,String)
	 */
	public static SelectionDialog createTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection) throws JavaModelException {
		return createTypeDialog(parent, context, scope, style, multipleSelection, "A");
	}
		
	/**
	 * Creates a selection dialog that lists all types in the given scope containing 
	 * a standard <code>main</code> method.
	 * The caller is responsible for opening the dialog with <code>Window.open</code>,
	 * and subsequently extracting the selected packages (of type
	 * <code>IType</code>) via <code>SelectionDialog.getResult</code>.
	 * <p>
	 * [Issue: IJavaSearchScope is not currently part of the Java core API.]