2 comments
Comment actions Permalink

never mind, I figured it out, I was so close the whole time, unfortunately I was using constant ActionPlaces.MAIN_TOOLBAR, which is "MainToolbar" :|


DefaultActionGroup mainToolBar = (DefaultActionGroup) ActionManager.getInstance().getAction("MainToolBar");
mainToolBar.addAction(...)

0
Comment actions Permalink

The constants in ActionPlaces are not action group IDs. The constant for the group ID that you need is IdeActions.GROUP_MAIN_TOOLBAR.

0

Please sign in to leave a comment.