-
Notifications
You must be signed in to change notification settings - Fork 1
DevFaqActionAddEditorPopup
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 layer.xml
.
-
On the first tab, choose Conditionally Enabled action and select
EditorCookie
as the cookie class. -
On the second tab, check Editor Context Menu Item and choose MIME type (
text/x-java
in this case) and position.
OR use
@ActionReference(path="Editors/text/x-java/Popup")
for an action with the `EditorCookie` as context object <hr/>
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-01-26, and needs to be reviewed.
Apache NetBeans is an effort undergoing incubation at The Apache Software Foundation (ASF).
Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
This wiki is an experiment pending Apache NetBeans Community approval.