Open Run Configuration Editor Window Programmatically from Action

已回答

I'm writing a plugin that lets a user execute selected code in a remote service (Livy). So I created a special Run Configuration for that, where you can paste your code and execute it on Livy. That works fine, but I would like to extend the functionality:
I would like to have to have an action in the context menu that opens my Run Configuration Editor with the selected text already filled in, so that the user can edit some settings, and then choose to execute it.
I figured out how to create an action and retrieve the selected text, however, I haven't been able to figure out how to open the Run Configuration Editor Window in my action (and execute it when done). Do you have some hints or example that I could copy? 

0

I didn't figure out how to open the editor dialog but turns out it isn't really necessary. I configured a RunConfigurationProducer and this makes a 'create ..' option pop up in the context menu which does exactly what I wanted.

0

请先登录再写评论。