Project: JDT
Bug 5128 JavaUI.revealInEditor doesn't handle ICompilationUnits properly
Reported: 2001-10-20 11:12:12 | Status: resolved fixed

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)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java