How to add a JComponent to pre-existing Run configuration editor


I am not entirely sure this is possible, but I am trying to add a custom component (JButton, JLabel, etc...) to an existing Run Configuration Editor, so far this is what I have tried.

RunManager instance = RunManager.getInstance(project);
RunnerAndConfigurationSettings nodejsTemplate = instance.createConfiguration("my-config-name", NodeJsRunConfigurationType.getInstance());
(NodeJsRunConfiguration) nodejsTemplate.getConfiguration();

However this produce an error:

java.lang.UnsupportedOperationException: This method should never be called!

So I guess that is the wrong direction.

I was thinking to create my own class and extends to the


However the class is private and I will have to make a lot of plumbing work.

Is there an easy way to achieve this? Thanks

1 comment
Comment actions Permalink

Please see, EP: NodeJS.runConfigurationExtension.

It extends generic com.intellij.execution.configuration.RunConfigurationExtensionBase (samples:, see its javadoc


Please sign in to leave a comment.