I'm developing a plug-in to launch a custom debug session.
I'm not using the default Java debugging facilities, but a custom native
agent that records the events in the program (TOD is the name of the
tool of you want to google it). This tool can debug any Java program,
so I want to reuse all the dialogs and settings provided by IDEA itself
("Configuration", "Code Coverage" and "Logs" specifically).
My idea of the plug-in is:
1. Add a new button "TOD" next to the original "Debug" button.
2. Launch the same dialog that appears when you click on the "Run" or
"Debug" buttons, but adding a new tab which will provide specific
configuration for TOD.
I have managed to add a new button (registering a new JavaProgramRunner
I also managed to add a new tab to the existing ones (returning a custom
SettingsEditor from getSettingsEditor in my implementation of
JavaProgramRunner), but the result was not what I expected:
- It shows a tab named "Startup/Connection" and I have not been able to
figure out how to change that.
- Besides, the additional tab is also shown when I click on the "Run"
and "Debug" buttons, which is not what I want (it should be shown only
when the "TOD" button is clicked).
So, finally, my question is: how to add a new tab to "run" dialog only
when the "TOD" button is clicked? and how to specify the name of that
Thanks in advance.
PD: the additional tab is designed to hold several additional
configurations, isn't it? I assume that because it shows a list on the