Getting Classes in a project from plugin

Answered

Get Build time (Classes in the same project or classes in the dependency) classes to use getters and setters to generate functionality based on that in a plugin

6 comments
Comment actions Permalink

Please explain in more detail what classes exactly you what to search for - all classes, subclasses of X, annotated classes,.... ?

0
Comment actions Permalink

All classes of the project and also the project dependencies.

0
Comment actions Permalink

Use com.intellij.psi.search.searches.AllClassesSearch and specify com.intellij.psi.search.ProjectScope#getAllScope

1
Comment actions Permalink

Thanks for the support Yann Cebron. It worked. 

0
Comment actions Permalink

Yann Cebron tried to port the code to intellij version 2020.2.4. AllClassesSearch class not available.

0

Please sign in to leave a comment.