Bug 6094 - Search - does not find references to JavaProject.setProject(...)
Summary: Search - does not find references to JavaProject.setProject(...)
Status: RESOLVED DUPLICATE of bug 3320
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-20 06:18 EST by Philipe Mulet CLA
Modified: 2002-01-11 09:22 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2001-11-20 06:18:55 EST
Build 20011115 + Jdtcore v_210_2

In a self-hosting workspace, I cannot find references to the selected method 
JavaProject.setProject(IProject).

However, there is at least a match:

\org.eclipse.core.resources\resources.jar - 
org.eclipse.core.internal.resources.Project.createNature(String)

which is found through a Java dialog search using text pattern: 'setProject
(IProject)'.
Comment 1 Philipe Mulet CLA 2001-11-20 06:31:10 EST
The polymorphic search should probably consider the root definitions of the 
referenced element, so as to find all possible matches to it (even in 
prerequisites). Then it would narrow the result set by pruning those outside 
the existing path to these roots.

Comment 2 Philipe Mulet CLA 2001-11-20 07:30:21 EST
After some analysis, it appears that:

- the super type names list should be computed in the context of declaration of 
the selected element, and not in the context of the potential matches (which 
may not know about the declaring class of the element - scenario of this PR).

- the context used to compute the list should be either the enclosing project 
of the element (if any was provided) or it should iterate on all declarations 
of the target element (when using the textual Java search) - maybe it could 
merge all supertypes in one global list of names ?
Comment 3 Jerome Lanneluc CLA 2001-11-23 11:41:08 EST

*** This bug has been marked as a duplicate of 3320 ***