Bug 18358 Clicking on methods in the hierarchy view shows the top of the file in the editor
Build 20020528 - 20020530. Clicking on a member or method in the hierarchy view with the "Show source of selected elements only" on, goes to the top of the file. This seems to be a regression as I saw this bug half a year ago. -Leon
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
boolean showCUChildren= AppearancePreferencePage.showCompilationUnitChildren();
		boolean reconcile= JavaBasePreferencePage.reconcileJavaViews();
		fViewer.setContentProvider(new JavaElementContentProvider(showCUChildren, reconcile));
		
		JavaPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this);
		
		ILabelProvider labelProvider= 
			new AppearanceAwareLabelProvider(
				AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED,
				AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS,
				AppearanceAwareLabelProvider.getDecorators(true, null)
			);
		
		fViewer.setLabelProvider(new DecoratingLabelProvider(
			labelProvider, PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator())
		);
		fViewer.setSorter(new JavaElementSorter());
		fViewer.setUseHashlookup(true);
		MenuManager menuMgr= new MenuManager("#PopupMenu"); 
		menuMgr.setRemoveAllWhenShown(true);
		menuMgr.addMenuListener(this);
		fContextMenu= menuMgr.createContextMenu(fViewer.getTree());
		fViewer.getTree().setMenu(fContextMenu);
		
		
		IWorkbenchPartSite site= getSite();
		site.registerContextMenu(menuMgr, fViewer);
		site.setSelectionProvider(fViewer);
		site.getPage().addPartListener(fPartListener);