initDragAndDrop();
	public void createPartControl(Composite container) {								fPagebook= new PageBook(container, SWT.NONE);								// page 1 of pagebook (viewers)		fTypeMethodsSplitter= new SashForm(fPagebook, SWT.VERTICAL);		fTypeMethodsSplitter.setVisible(false);		fTypeViewerViewForm= new ViewForm(fTypeMethodsSplitter, SWT.NONE);						Control typeViewerControl= createTypeViewerControl(fTypeViewerViewForm);		fTypeViewerViewForm.setContent(typeViewerControl);						fMethodViewerViewForm= new ViewForm(fTypeMethodsSplitter, SWT.NONE);		fTypeMethodsSplitter.setWeights(new int[] {35, 65});				Control methodViewerPart= createMethodViewerControl(fMethodViewerViewForm);		fMethodViewerViewForm.setContent(methodViewerPart);				fMethodViewerPaneLabel= new CLabel(fMethodViewerViewForm, SWT.NONE);		fMethodViewerViewForm.setTopLeft(fMethodViewerPaneLabel);						ToolBar methodViewerToolBar= new ToolBar(fMethodViewerViewForm, SWT.FLAT | SWT.WRAP);		fMethodViewerViewForm.setTopCenter(methodViewerToolBar);				// page 2 of pagebook (no hierarchy label)		fNoHierarchyShownLabel= new Label(fPagebook, SWT.TOP + SWT.LEFT + SWT.WRAP);		fNoHierarchyShownLabel.setText(TypeHierarchyMessages.getString("TypeHierarchyViewPart.empty")); //$NON-NLS-1$					MenuManager menu= new MenuManager();		menu.add(fFocusOnTypeAction);		fNoHierarchyShownLabel.setMenu(menu.createContextMenu(fNoHierarchyShownLabel));				fPagebook.showPage(fNoHierarchyShownLabel);		int orientation;		try {			orientation= fDialogSettings.getInt(DIALOGSTORE_VIEWORIENTATION);			if (orientation < 0 || orientation > 2) {				orientation= VIEW_ORIENTATION_VERTICAL;			}		} catch (NumberFormatException e) {			orientation= VIEW_ORIENTATION_VERTICAL;		}		// force the update		fCurrentOrientation= -1;		// will fill the main tool bar		setOrientation(orientation);				if (fMemento != null) { // restore state before creating action			restoreLinkingEnabled(fMemento);		}		fToggleLinkingAction= new ToggleLinkingAction(this);		// set the filter menu items		IActionBars actionBars= getViewSite().getActionBars();		IMenuManager viewMenu= actionBars.getMenuManager();		for (int i= 0; i < fViewActions.length; i++) {			viewMenu.add(fViewActions[i]);		}		viewMenu.add(new Separator());		for (int i= 0; i < fToggleOrientationActions.length; i++) {			viewMenu.add(fToggleOrientationActions[i]);		}		viewMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));		viewMenu.add(fShowQualifiedTypeNamesAction);		viewMenu.add(fToggleLinkingAction);					// fill the method viewer toolbar		ToolBarManager lowertbmanager= new ToolBarManager(methodViewerToolBar);		lowertbmanager.add(fEnableMemberFilterAction);					lowertbmanager.add(new Separator());		fMethodsViewer.contributeToToolBar(lowertbmanager);		lowertbmanager.update(true);									// selection provider		int nHierarchyViewers= fAllViewers.length; 		Viewer[] trackedViewers= new Viewer[nHierarchyViewers + 1];		for (int i= 0; i < nHierarchyViewers; i++) {			trackedViewers[i]= fAllViewers[i];		}		trackedViewers[nHierarchyViewers]= fMethodsViewer;		fSelectionProviderMediator= new SelectionProviderMediator(trackedViewers);		IStatusLineManager slManager= getViewSite().getActionBars().getStatusLineManager();		fSelectionProviderMediator.addSelectionChangedListener(new StatusBarUpdater(slManager));				getSite().setSelectionProvider(fSelectionProviderMediator);		getSite().getPage().addPartListener(fPartListener);				// see http://bugs.eclipse.org/bugs/show_bug.cgi?id=33657		IJavaElement input= null; //determineInputElement();		if (fMemento != null) {			restoreState(fMemento, input);		} else if (input != null) {			setInputElement(input);		} else {			setViewerVisibility(false);		}		WorkbenchHelp.setHelp(fPagebook, IJavaHelpContextIds.TYPE_HIERARCHY_VIEW);				fActionGroups= new CompositeActionGroup(new ActionGroup[] {				new NewWizardsActionGroup(this.getSite()),				new OpenEditorActionGroup(this), 				new OpenViewActionGroup(this), 				fCCPActionGroup= new CCPActionGroup(this), 				new GenerateActionGroup(this),				new RefactorActionGroup(this),				new JavaSearchActionGroup(this)});				fActionGroups.fillActionBars(actionBars);		fSelectAllAction= new SelectAllAction(fMethodsViewer);				actionBars.setGlobalActionHandler(IWorkbenchActionConstants.SELECT_ALL, fSelectAllAction);				initDragAndDrop();			}