Community
Participate
Working Groups
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)'.
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.
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 ?
*** This bug has been marked as a duplicate of 3320 ***