JavaPlugin.getErrorTickManager().addListener(fViewer);
JavaPlugin.getDefault().getJavaProblemMarkerFilter().addListener(fViewer);
	public void createPartControl(Composite parent) {		fViewer= new PackageViewer(parent);				fViewer.setContentProvider(new JavaElementContentProvider());		JavaPlugin.getErrorTickManager().addListener(fViewer);				int labelFlags= JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_OVERLAY_ICONS |					JavaElementLabelProvider.SHOW_SMALL_ICONS | JavaElementLabelProvider.SHOW_VARIABLE;		JavaElementLabelProvider labelProvider = new JavaElementLabelProvider(labelFlags);		fViewer.setLabelProvider(new DecoratingLabelProvider(labelProvider, null));		fViewer.setSorter(new PackageViewerSorter());		fViewer.addFilter(new EmptyInnerPackageFilter());		fViewer.setUseHashlookup(true);		fViewer.addFilter(fPatternFilter);		fViewer.addFilter(fLibraryFilter);		if(fMemento != null) 			restoreFilters();		else			initFilterFromPreferences();					// Set input after filter and sorter has been set. This avoids resorting		// and refiltering.		fViewer.setInput(findInputElement());		initDragAndDrop();		initFrameList();		initRefreshKey();		updateTitle();				MenuManager menuMgr= new MenuManager("#PopupMenu"); //$NON-NLS-1$		menuMgr.setRemoveAllWhenShown(true);		menuMgr.addMenuListener(this);		fContextMenu= menuMgr.createContextMenu(fViewer.getTree());		fViewer.getTree().setMenu(fContextMenu);		getSite().registerContextMenu(menuMgr, fViewer);				makeActions(); // call before registering for selection changes					fViewer.addSelectionChangedListener(new ISelectionChangedListener() {			public void selectionChanged(SelectionChangedEvent event) {				handleSelectionChanged(event);			}		});		fViewer.addDoubleClickListener(new IDoubleClickListener() {			public void doubleClick(DoubleClickEvent event) {				handleDoubleClick(event);			}		});		fViewer.getControl().addKeyListener(new KeyAdapter() {			public void keyPressed(KeyEvent e) {				handleKeyPressed(e);			}		});		getSite().setSelectionProvider(fViewer);		getSite().getPage().addPartListener(fPartListener);		IStatusLineManager slManager= getViewSite().getActionBars().getStatusLineManager();		fViewer.addSelectionChangedListener(new StatusBarUpdater(slManager));		if (fMemento != null)			restoreState(fMemento);		fMemento= null;		// Set help for the view 		// fixed for 1GETAYN: ITPJUI:WIN - F1 help does nothing		WorkbenchHelp.setHelp(fViewer.getControl(), new ViewContextComputer(this, IJavaHelpContextIds.PACKAGE_VIEW));				fillActionBars();	}