Bug 5128 JavaUI.revealInEditor doesn't handle ICompilationUnits properly
When calling JavaUI.revealInEditor with an ICompilationUnit, then the package declaration is revealed. This isn't useful, passing an ICompilationUnit should be treated as a no-op. Otherwise clients need to guard against revealing the package declaration in their code (see OpenResourceAction as an example)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
addAction(menu, "Inspect"); 
		addAction(menu, "Display"); 
		addAction(menu, "RunToLine"); 
	}			
	
	/**
	 * Creates the outline page used with this editor.
	 */
	protected JavaOutlinePage createOutlinePage() {
		
		JavaOutlinePage page= new JavaOutlinePage(fOutlinerContextMenuId, this);
		
		page.addSelectionChangedListener(this);
		setOutlinePageInput(page, getEditorInput());
		
		
		page.setAction("OpenImportDeclaration", new OpenImportDeclarationAction(page)); 
		page.setAction("ShowInPackageView", new ShowInPackageViewAction(getSite(), page)); 
		page.setAction("AddMethodEntryBreakpoint", new AddMethodEntryBreakpointAction(page)); 
		page.setAction("AddWatchpoint", new AddWatchpointAction(page)); 
	
		return page;
	}
	
	/**
	 * Informs the editor that its outliner has been closed.
	 */
	public void outlinePageClosed() {
		if (fOutlinePage != null) {