Assume it's not quite what is being asked but would Edit...Find in Project...Scope (specific project or folder) *java to search for usage of the given "Annotation" in the given project in the code be an alternative?
Eric Bresie [email protected] On Sun, Dec 19, 2021 at 4:49 AM Peter Nabbefeld <[email protected]> wrote: > > Hello, > > I'm looking for how to find all classes with a certain annotation via > Indexer or Java API or even Java refactoring(or whatever module provides > such functionality). How could I find all these classes? My best bet is > probably using > org.netbeans.modules.refactoring.java.plugins.FindLocalUsagesQuery, so > far, but I don't know how to get the javax.lang.model.element.Element > and the org.netbeans.api.java.source.CompilationInfo. > > Any help appreciated. > > Kind regards, > Peter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
