Add action after "Copy" in editor popup menu

Using trial and error and debugger I am able to insert my own action right behind the "Copy" action in the editor popup menu:

There sure must be an easier and cleaner way to do this (i.e. one that does not involve so much casting and array index guessing)?!

5 comments
Comment actions Permalink

This should work:

0
Comment actions Permalink

Thanks, that works and is much nicer.
BTW is there any place where action ids are documented, or do I always have to ask in the forum or reverse-engineer by debugging?

0
Comment actions Permalink

Hi,

resources.jar\idea\ActionManager.xml

Stephen Kelvin wrote:

Thanks, that works and is much nicer.
BTW is there any place where action ids are documented, or do I always have to ask in the forum or reverse-engineer by debugging?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

There used to be a file ActionManager.xml which contained all action ids, but it seems to have been removed sometime during the Pallada EAP. I have have posted multiple times with questions about that, but there was no response.

The attachment to this post contains the ActionManager.xml file:
http://www.intellij.net/forums/thread.jsp?forum=23&thread=121999&message=3438115#3438115

0
Comment actions Permalink

Oh, that's where it is! I posted to soon, thanks.

Bas

0

Please sign in to leave a comment.