Summary: | IJavaElement#getJavaProject() returns wrong project (external JARs are shared in multiple classpaths) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Lars Ködderitzsch <rookie_no2> | ||||
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
Status: | RESOLVED WONTFIX | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | daniel_megert, dirk_baeumer, klaus.heywinkel, M8R-sgiphk, markus.kell.r | ||||
Version: | 2.1 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 319294, 100488, 347128 | ||||||
Attachments: |
|
Description
Lars Ködderitzsch
2003-06-30 05:17:02 EDT
Your assumption is the right one. This is a performance issue. The user selection should tell you the proper project context. Given an IStructuredSelection in my action object, how does this selection reveal me the proper project context? The only thing in this selection object is the selected element itself... Regards, Lars Moving to JDT/UI, they probably know the answer. No, JDT/UI has the same problem. We don't have "proper project context" either since selections are managed by JFace. Moving back to JDT/Core. Hi all, seems like there is more interest in this request than just mine. I would propose that selections in trees lead to a specialized IStructuredSelection, which would allow to navigate the selection path (maybe similar to javax.swing.tree.TreePath). That would perfectly fit my needs and probably the needs of JDT/UI as well. Will some of you support a feature request? Regards, Lars Created attachment 7225 [details]
Proposed patch
Changing equals(...) on PackageFragmentRoot and JarPackageFragmentRoot to also
consider the parent. However the element info is still shared, the key being
the package fragment root's path.
Deferring post 3.1 As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you. *** Bug 162037 has been marked as a duplicate of this bug. *** |