What is an efficient way of finding the classes in a project using Eclipse's JDT? [message #706072] |
Sat, 30 July 2011 20:39  |
Eclipse User |
|
|
|
Eclipse's SearchEngine class has many methods for searching, including various flavors of search, searchAllTypeNames, etc. searchAllTypeNames seems to be oriented around finding the classes in a package. What is a good strategy for finding the user-defined classes in a project?
- Use search with a custom IJavaSearchResultCollector.
- Obtain all of the packages in the project (using search?), then iterate through the packages, collecting the classes using searchAllTypeNames.
- Traverse the AST manually.
- Something else.
Note, I don't really need the "most efficient" way of collecting methods. I prefer something that is easy-to-code and reasonably efficient to something that requires large amounts of code to be more efficient.
I welcome any related, general guidance on using the SearchEngine methods. I find the many options baffling.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02794 seconds