ExecutorAction on different toolbars

Hi! I’ve added my custom ExecutorAction to different toolbars (like MainToolbarRight). When action is being executed it does nothing because:

JBIterable<RunDashboardRunConfigurationNode> targetNodes = RunDashboardActionUtils.getLeafTargets(e);

returns empty result.

I want to use currently selected run configuration and my own executor.

Triggering actions programmatically actually is a very bad pattern that must be avoided. Try to call their underlying APIs instead, actions are UI and not API

Triggering actions programmatically actually is a very bad pattern that must be avoided. Try to call their underlying APIs instead, actions are UI and not API

Maybe I put it wrong words, I’m “clicking” on action button in toolbar, so not triggering it programatically but through IDE.