|
org.netbeans.modules.editor.lib2/1 1.43.1 10 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=SOURCE) @Target(value={TYPE,METHOD}) public @interface EditorActionRegistration
Registration of an editor action so that it's automatically added into the list
of editor actions even without being explicitly created by BaseKit.createActions()
.
The corresponding annotation processor will build a xml-layer entry file
in the corresponding /Editors/<mime-type>/Actions folder.
Required Element Summary | |
---|---|
String |
name
Name of the action that will appear as Action.NAME attribute's value. |
Optional Element Summary | |
---|---|
String |
iconResource
Resource specification for small icon. |
String |
menuPath
Path of this action in main menu e.g. |
int |
menuPosition
Integer position of the main menu item among the other menu items. |
String |
menuText
Menu text bundle key of the registered action. |
String |
mimeType
Mime type for which the action will be registered. |
String |
popupPath
Path of this action in popup menu e.g. |
int |
popupPosition
Integer position of the popup menu item among the other popup menu (or submenu) items. |
String |
popupText
Popup menu text bundle key of the registered action. |
String |
preferencesKey
Boolean key in preferences that corresponds to action's selected state. |
String |
shortDescription
Short description bundle key of the action being registered. |
int |
toolBarPosition
Integer position of this action in editor toolbar. |
Element Detail |
---|
public abstract String name
Action.NAME
attribute's value.
DefaultEditorKit
.
public abstract String mimeType
public abstract String iconResource
public abstract String shortDescription
public abstract String menuText
public abstract String popupText
public abstract String menuPath
public abstract int menuPosition
public abstract String popupPath
public abstract int popupPosition
public abstract int toolBarPosition
public abstract String preferencesKey
MimeLookup.getLookup(MimePath.EMPTY)
.
|
org.netbeans.modules.editor.lib2/1 1.43.1 10 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |