Bug 6094

Summary: Search - does not find references to JavaProject.setProject(...)
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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 ***