Bug 5804 - Bug in ClassFileEditor.getCorrespondingElement
Summary: Bug in ClassFileEditor.getCorrespondingElement
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 5942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-12 13:18 EST by Martin Aeschlimann CLA
Modified: 2001-11-19 12:04 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2001-11-12 13:18:05 EST
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'
Comment 1 Kai-Uwe Maetzel CLA 2001-11-13 12:48:11 EST
Build > 20011113.
Comment 2 Martin Aeschlimann CLA 2001-11-19 12:04:51 EST
*** Bug 5942 has been marked as a duplicate of this bug. ***