2 comments
Comment actions Permalink

Create the class using PsiElementFactory.createClass() or PsiElementFactory.createClassFromText() and add it to the PsiDirectory using the add() method

0
Comment actions Permalink

Tired browsing for a sample code.

I have list of classes, list of members along with parameters details to be created,

whenever clicked on editor, I need developed code on actionPerformed method to generate the classes along with files and folders.

Not clear, what is the way forward.

whether to create folder / create package / create class / create file / ???

any sample code or document please

 

0

Please sign in to leave a comment.