Note: These pages are being reviewed.
How do I add an action to a the popup menu of the Java editor?
The simplest way is to run New Action Wizard (File > New… > Module Development > Action) which creates an action for you and registers it in your
On the first tab, choose Conditionally Enabled action and select
EditorCookieas the cookie class.
On the second tab, check Editor Context Menu Item and choose MIME type (
text/x-javain this case) and position.
for an action with the `EditorCookie` as context object
Apache Migration Information
The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqActionAddEditorPopup , that was last modified by NetBeans user Markiewb on 2014-12-31T11:45:54Z.
NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.