Summary: | [search] Strange results in Java search engine | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Thilo Brause <ThiloBrause> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1.1 | ||
Target Milestone: | 3.2 M3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Thilo Brause
2005-10-24 06:04:10 EDT
It should work properly as we test these pattern parameter and get expected results... I'll have a look at your sample and try to find out where the problem is. Dear Mr. Fusier, In one of the newsgroups I posted my problem last week, yesterday came an explanation. Somebody showed me a sentence in the JDT Programmers Guide (Page 82): “For example, searching for references to a method could find such a reference in an initializer. The initializer that contains this method reference is the element of the search match. “ This explains why I only get methods as results (they contain the types I search). In conclusion the “Bug” I found is not a Bug, but at most a missing feature. (Since I don’t know how to get the names of the types out of the methods, and I don’t see a way doing that with the Java search engine) I hope you haven’t spend to much time on it, Thilo Brause Close as INVALID. SearchMatch allow you to retrieve the name of the reference or declaration in the source using offset and length. However, for class declaration names it is better to use searchAllTypeNames method... |