How to populate "superclass" list in Test Generator

Answered

In my plugin I have a `TestGenerator` which works well but I cannot figure out how to set the list of available superclasses.

Any ideas ?

0
3 comments

Stephen,

Please check the existing implementation of JavaTestGenerator.addSuperClass

0

That looks like it's only used when generating the class.

To populate that drop down, it seems the CreateTestDialog uses Recent manager. I can add my superclasses into the recent manager. Do you know how to trigger some code when the project has loaded?

0

You have to register the ProjectManagerListener:

<projectListeners>
<listener class="MyProjectManagerListener" topic="com.intellij.openapi.project.ProjectManagerListener"/>
</projectListeners>
0

Please sign in to leave a comment.