IType type= (IType)types[0]; new OpenTypeHierarchyHelper().open(new IType[] { type }, JavaPlugin.getActiveWorkbenchWindow());
IType type= (IType)types[0]; if(dialog.showInTypeHierarchy()) { new OpenTypeHierarchyHelper().open(new IType[] { type }, JavaPlugin.getActiveWorkbenchWindow()); } else { try { open(type); } catch (JavaModelException e) { ExceptionHandler.handle(e, JavaPlugin.getResourceBundle(), ERROR_OPEN_PREFIX); } catch (PartInitException e) { ExceptionHandler.handle(e, JavaPlugin.getResourceBundle(), ERROR_OPEN_PREFIX); } }
	public void run() {		Shell parent= JavaPlugin.getActiveWorkbenchShell();		OpenTypeSelectionDialog dialog= new OpenTypeSelectionDialog(parent, new ProgressMonitorDialog(parent), 			SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_TYPES, 			true, true);							dialog.setTitle(JavaPlugin.getResourceString(DIALOG_PREFIX + "title"));		dialog.setMessage(JavaPlugin.getResourceString(DIALOG_PREFIX + "message"));		if (dialog.open() == IDialogConstants.CANCEL_ID) {			return;		}				Object[] types= dialog.getResult();		if (types != null && types.length > 0) {			IType type= (IType)types[0];					new OpenTypeHierarchyHelper().open(new IType[] { type }, JavaPlugin.getActiveWorkbenchWindow());		}	}