Mention folder for new class creation via custom plugin

Hi All,

We are developing a custom language plugin.

Users have the facility to create a new class via our plugin. The new class should be created in src/test/java folder of the project. Where should we mention this path?


Plugin source code can be found here. Code for adding new class is in CreateStepImplFix#createFileAndAddImpl.

2 comments
Comment actions Permalink

Also, DataManager.getInstance().getDataContext() is now deprecated. So, what is the correct way to get a dummy data context to pass to AnActionEvent?

0
Comment actions Permalink

There was a bug in the code that we had written. It was only considering the first content source root in the project.
See this issue#89 (https://github.com/getgauge/Intellij-Plugin/issues/89) on github for the fix.

0

Please sign in to leave a comment.