[RSS]

How do I add an action to a the popup menu of the Java editor?

You must declare your action in your layer.xml file. Like this:

<folder name="Editors">
 <folder name="text">
   <folder name="x-java">
      <folder name="Popup">
         <file name="org-mymodule-MyAction.instance"/>
</folder></folder></folder></folder></folder>

Prior to NB 4.2, you could use Editors/text/base/Popup/ to add an action to all editor kits. As of NB 4.2 and later versions, use just Editors/Popup/ instead.

See also: