[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.jdt] problems with searching for references
|
Hello,
I want to search for references for a class or a method. I do this via
getSearchEngine().search(pattern, getParticipants(), searchScope,
searchRequestor, monitor);
where the pattern has been created with
pattern = SearchPattern.createPattern(element,
JavaSearchConstants.REFERENCES);
and the searchScope has been created with
searchScope = SearchEngine.createJavaSearchScope(javaProjects);
javaProjects is a array of IJavaProject, that the user selects.
Now when I use this approach on classes I will find all references in java
source code, but I miss references in plugin.xml.
Eclipse itself however also finds the reference to plugin.xml when I search
the same projects via "references".
I thought that maybe the way I create my searchscope might be wrong, so I
tried SearchEngine.createWorkspaceScope(), but to no avail. I also tried
variations of the createPattern method, but again I had no success.
Can anybody give me a hint which approach I need to take in order to also
find references to a class in plugin.xml?
TIA,
Rudi