Project: JDT
Bug 5804 Bug in ClassFileEditor.getCorrespondingElement
Reported: 2001-11-12 13:18:05 | Status: resolved fixed

protected IJavaElement getCorrespondingElement(IJavaElement element) { IJavaElement parent= JavaModelUtil.findParentOfKind(element, IJavaElement.CLASS_FILE); return (parent == this ? element : null); } 'this' is a ClassFileEditor, so parent will never be 'this'

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