How to add a menu item below "Exclude From Compile"?

Hi all,
I want to add an Action to the popup menu as shown in the screenshot I have attached. I looked at all actions in the plugin generation wizard but couldn't see it.

How can I add a new menu item in this popup menu?

thanks..



Attachment(s):
Untitled-2.png
6 comments

HI halil,
i think you can't do it formally. without any hack.
because that part is also a different plugin area.
by default you dont have access to other stuff...

regards
Halil Karakose wrote:

Hi all,
I want to add an Action to the popup menu as shown in the screenshot I have attached. I looked at all actions in the plugin generation wizard but couldn't see it.

How can I add a new menu item in this popup menu?

thanks..


------------------------------------------------------------------------

0

Hello Halil,

HK> I want to add an Action to the popup menu as shown in the screenshot
HK> I have attached. I looked at all actions in the plugin generation
HK> wizard but couldn't see it.
HK> How can I add a new menu item in this popup menu?

The group ID for this context menu is "CompilerErrorViewPopupMenu" (IdeActions.GROUP_COMPILER_ERROR_VIEW_POPUP).

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Thank you very much. I'll have a try.

0

Hello Dmitry,
I cannot find GROUP_COMPILER_ERROR_VIEW_POPUP in IdeActions class. I am using dev kit 5.1.2. should I switch to another version?

0

Hello Halil,

HK> I cannot find GROUP_COMPILER_ERROR_VIEW_POPUP in IdeActions class. I
HK> am using dev kit 5.1.2. should I switch to another version?

Indeed, customizing the menu is only supported in IntelliJ IDEA 6.0 beta.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Hello,
There is no actions inside GROUP_COMPILER_ERROR_VIEW_POPUP. I expected to see "Exclude From Compile" actions to be listed here. But there is no actions in this group. And also I get the following error:

ERROR - nSystem.impl.ActionManagerImpl - action with id "CompilerErrorViewPopupMenu" isn't registered; action will be added to the "Other" group
java.lang.Throwable

Is this group not active by default?



Attachment(s):
new_action.png
0

Please sign in to leave a comment.