How to extend editor popup menu?

Hi,

I need add custom item to the editor popupmenu. When I'm trying access this popupmenu result is allways null :(

editorMenu = (DefaultActionGroup)ActionManager.getInstance().getAction(ActionPlaces.EDITOR_POPUP);

This line is called when editor is opened (in fileOpened method of FileEditorManagerListener).

What's wrong?

Thank you

-- likeapear

2 comments

I'm very sorry. Invalid actionId (must be "EditorPopupMenu")
Mistake on developer side again :)

-- likeapear

0

likeapear wrote:

Hi,

I need add custom item to the editor popupmenu. When I'm trying access this popupmenu result is allways null :(

editorMenu = (DefaultActionGroup)ActionManager.getInstance().getAction(ActionPlaces.EDITOR_POPUP);

This line is called when editor is opened (in fileOpened method of FileEditorManagerListener).

What's wrong?

Thank you

-- likeapear


alternatively you can use plugin.xml file to extend editor popup menu

--
Vladimir Kondratyev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.