Bug 29170 False error feedback from "Show in package explorer"
Build 20030107 1. Open a .java file in the Java editor. 2. Click "Collapse All" in the packages view to collapse the tree. 3. Right click on the top-level type in the Outline view and choose "Show in Package Explorer" 4. The packages view correctly expands to the selected type, but an error dialog pops up: Title: "Show in Package Explorer" Message: "Couldn't reveal the selected element in Package Explorer. May be the element is filtered out." This happens any time the tree needs to be expanded to reveal a type.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
super.dragStart(event);
			}
		});
	}
	/**
	 * Handles selection changed in viewer.
	 * Updates global actions.
	 * Links to editor (if option enabled)
	 */
	private void handleSelectionChanged(SelectionChangedEvent event) {
		IStructuredSelection selection= (IStructuredSelection) event.getSelection();
		fActionSet.handleSelectionChanged(event);
		
		linkToEditor(selection);
	}
	public void selectReveal(final ISelection selection) {
		
		
		Display d= getSite().getShell().getDisplay();
		Runnable r= new Runnable() {
			public void run() {
				Control ctrl= fViewer.getControl();
				if (ctrl != null && !ctrl.isDisposed()) {
					final ISelection javaSelection= convertSelection(selection);
					fViewer.setSelection(javaSelection, true);
					if (javaSelection != selection && !javaSelection.equals(fViewer.getSelection()))
						fViewer.setSelection(selection);
				}
			}
		};