I have made some progress in implementing my own run type (have it showing and created the basic UI I want..). What I would like to have now is a way to create a dialog similar to "Choose Main Class". This is what you get when you click on "..." in the create new run/debug Application configuration dialog. You also get a similar dialog with the test class/package choosers for JUnit run configurations, etc. I have my own button that I would like to trigger this dialog.
So as this type of a dialog seems to repeat often in the various run configurations, I am hoping to find a class that lets me just define a filter for the classes to display (they should contain specific annotations similar to @Test in JUnit) and has everything else out of the box. Where can I find this, and are there some examples of that?
I was looking at the JUnit plugin sources for examples. It seems to implement a filter of type ClassFilter.ClassFilterWithScope and extends a browser called ClassBrowser. But I am not sure how the dialog gets built. Maybe with the EditorTextFieldWithBrowseButton class but I get lost in browsing that code.