I need to know how

ActionManager.getAction(String id)

I used ActionManager to get actions from plugin.xml and then called AnAction.copyFrom(AnAction) in order to have different instance per IDEA project frame. I also set some additional members to the action which belongs to the current frame. I expected that the action returned by the above call will not be registered with the system yet.Later I created toolbar containing actions grouped in DefaultActionGroup. The problem was that the action firstly read by the above call, was still "alive" and got activated on shortcut assigned to it. So when clicking on the action button I've got one instance of the action and pressing keyboard shortcut I've got another one.



Please sign in to leave a comment.