@Retention(value=SOURCE) @Target(value={TYPE,METHOD}) public @interface EditorActionRegistration
BaseKit.createActions()
.
/Editors/<mime-type>/Actions
folder.Modifier and Type | Required Element and Description |
---|---|
String |
name
Name of the action that will appear as
Action.NAME attribute's value. |
Modifier and Type | Optional Element and Description |
---|---|
String |
category
Name of the keymap-category.
|
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.
|
boolean |
noIconInMenu
True if the action should not display its icon in menu.
|
boolean |
noKeyBinding
True if the action should not be displayed in customizer for key bindings assignment.
|
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.
|
boolean |
preferencesDefault
Whether or not the action should be in checked state by default.
|
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.
|
int |
weight
Allows to make an override of an action by adding a "weight" attribute
into a generated file object in the system filesystem
- see
MultiFileSystem . |
public abstract String name
Action.NAME
attribute's value.
DefaultEditorKit
.public abstract String mimeType
/Editors/<mime-type>/Actions
.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 boolean noIconInMenu
public abstract boolean noKeyBinding
public abstract String preferencesKey
MimeLookup.getLookup(MimePath.EMPTY)
.public abstract boolean preferencesDefault
EditorActionRegistration.preferencesKey()
.public abstract int weight
MultiFileSystem
.public abstract String category