Getting custom action programmaticly

I made an Action that extends AnAction and registered it to the plugin.xml. How do I get a handle on it to use in code? I need to set my jbuttons to this action but can't find it. I tried ActionManager but no action ids.

0
Avatar
Permanently deleted user

Nvm I just used AnActionEvent.createFromAction()

0

Hi Brian,

normally you don't need to do that and we use action toolbars filled with actions and then buttons will be automatically created for us. Is it the case for you or what kind of button do you talk about?

Anna

0

请先登录再写评论。