Creating new psiClass Permanently deleted user Created January 27, 2012 09:42 Hello,I am asking about how to add or create a new class Java in an existing directory.
Create the class using PsiElementFactory.createClass() or PsiElementFactory.createClassFromText() and add it to the PsiDirectory using the add() method
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