Creating a new class

At some point in my plugin i want to create a new class in a given package in the current module from a class template.

Although this sounds simple is has lots of things that have to be taken care of before you actually create the class. Some of these are:

- What if the package doesn't exist ? I have to check if the package is created and if not create it myself.
- In which source root should the class/package be created ? I have to implement a source root selector dialog for this.

There may be more but these are the ones i thought of instantly.

Anyway, the question is:

Is there anything in the open api that already takes care of all this for me ?



Please sign in to leave a comment.