openEditor(input, false);
JavaUI.openInEditor(input, false, false);
	private static TypeHierarchyViewPart openInPerspective(IWorkbenchWindow window, IJavaElement input) throws WorkbenchException, JavaModelException {		IWorkbench workbench= JavaPlugin.getDefault().getWorkbench();		// The problem is that the input element can be a working copy. So we first convert it to the original element if		// it exists.		IJavaElement perspectiveInput= input;				if (input instanceof IMember) {			if (input.getElementType() != IJavaElement.TYPE) {				perspectiveInput= ((IMember)input).getDeclaringType();			} else {				perspectiveInput= input;			}		}		IWorkbenchPage page= workbench.showPerspective(JavaUI.ID_HIERARCHYPERSPECTIVE, window, perspectiveInput);				TypeHierarchyViewPart part= (TypeHierarchyViewPart) page.findView(JavaUI.ID_TYPE_HIERARCHY);		if (part != null) {			part.clearNeededRefresh(); // avoid refresh of old hierarchy on 'becomes visible'		}				part= (TypeHierarchyViewPart) page.showView(JavaUI.ID_TYPE_HIERARCHY);		part.setInputElement(input);		if (input instanceof IMember) {			if (page.getEditorReferences().length == 0) {				openEditor(input, false); // only open when the perspecive has been created			}		}		return part;	}