Run a node via code


I would like to run a node via code, like with the [Run <project>] menu item in the Run menu:

Is this possible?


Comment actions Permalink

Hi, not sure what "running a node" means.

But you can provide context sensitive actions in the context menu.

Your action would contain the code that you want to execute once the user selects the menu entry. The "isApplicable" block of an action allows you to provide the "context-sensitivity" logic.

Use a plugin solution to add your action to the popup menu. You might want to look at or similar group declarations as examples, I believe the important bit is the "is popup" flag at the very top.

Let us know if actions and plugin solutions are new to you and we can provide more specific help.

Comment actions Permalink

By running a node i mean that i have a node decorated with IMainClass and i can click the "Run" action on the menu to run it
I wanted to be able to run this action inside the editor (swing componenent)

And yes i'm fairly new to actions though i digged in a bit :D

Comment actions Permalink

Maybe what are you asking for is intentions.

Inside intentions, you can write the BaseLanguage code you want.

Comment actions Permalink

Well yeah i can too.

And that's the point, i don't really know how to run a build configuration.

I am now trying to create actions to do that instead.
What I exactly want to do more precisely is to run one of the run configurations

I was able to make the project using my action, but is there also a way to call an action<SomeAction> from an action? Instead of copy pasting the action's code.

But i wasn't able to actually run it, there was no action for it whatsoever.


Please sign in to leave a comment.