fillToolBar(getViewSite().getActionBars().getToolBarManager());
	public void createPartControl(Composite parent) {		Assert.isTrue(fViewer == null);		if (fMemento != null)			// XXX: Restore state here			// fViewer.restoreState(fMemento);		fMemento= null;		fTypeComparator= new JavaElementTypeComparator();		// Setup viewer		fViewer= createViewer(parent);		fLabelProvider= createLabelProvider();		ILabelDecorator decorationMgr= PlatformUI.getWorkbench().getDecoratorManager();		fViewer.setLabelProvider(new DecoratingLabelProvider(fLabelProvider, decorationMgr));				fViewer.setSorter(new JavaElementSorter());		fViewer.setUseHashlookup(true);		JavaPlugin.getDefault().getProblemMarkerManager().addListener((IProblemChangedListener)fViewer);		fTitleProvider= createTitleProvider();				MenuManager menuMgr= new MenuManager("#PopupMenu"); //$NON-NLS-1$		menuMgr.setRemoveAllWhenShown(true);		menuMgr.addMenuListener(this);		fContextMenu= menuMgr.createContextMenu(fViewer.getControl());		fViewer.getControl().setMenu(fContextMenu);		getSite().registerContextMenu(menuMgr, fViewer);		getSite().setSelectionProvider(fViewer);		createActions(); // call before registering for selection changes		addKeyListener();				getSite().setSelectionProvider(fViewer);				// Status line		IStatusLineManager slManager= getViewSite().getActionBars().getStatusLineManager();		fViewer.addSelectionChangedListener(new StatusBarUpdater(slManager));					hookViewerListeners();		// Initialize viewer input		fViewer.setContentProvider(createContentProvider());		setInitialInput();				// Initialize selecton		setInitialSelection();				// Filters		addFilters();		fillToolBar(getViewSite().getActionBars().getToolBarManager());			// Listen to workbench window changes		getViewSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this);		getViewSite().getPage().addPartListener(fPartListener);				fillActionBars();				setHelp();	}