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
Please sign in to leave a comment.
Please explain in more detail what classes exactly you what to search for - all classes, subclasses of X, annotated classes,.... ?
All classes of the project and also the project dependencies.
Use com.intellij.psi.search.searches.AllClassesSearch and specify com.intellij.psi.search.ProjectScope#getAllScope
Thanks for the support Yann Cebron. It worked.
Yann Cebron tried to port the code to intellij version 2020.2.4. AllClassesSearch class not available.
You must specify dependency on Java plugin https://blog.jetbrains.com/platform/2019/06/java-functionality-extracted-as-a-plugin/