@Retention(value=SOURCE) @Target(value={TYPE,FIELD,METHOD}) public @interface ActionReference
ActionID
annotation on the same element. Usually it is used together
with ActionRegistration
. You can place your action reference into
any path, here are few typical locations:
path="Menu/File"
, path="Menu/Edit"
, etc.path="Toolbars/Edit"
and other peer directoriespath="Shortcuts" name="C-F2 D-A"
, see Utilities.stringToKeys(java.lang.String)
and Utilities.stringToKey(java.lang.String)
for description of valid reference namespath="Loaders/text/xml"
, and other mime typesModifier and Type | Required Element and Description |
---|---|
String |
path
Into which location one wants to place the reference?
Translates to
FileUtil.getConfigFile(java.lang.String) . |
Modifier and Type | Optional Element and Description |
---|---|
ActionID |
id
Identification of the action this reference shall point to.
|
String |
name
One can specify name of the reference.
|
int |
position
Position in the location.
|
int |
separatorAfter
Shall a separator be placed after the action?
|
int |
separatorBefore
Shall a separator be placed before the action?
|
public abstract String path
FileUtil.getConfigFile(java.lang.String)
.public abstract ActionID id
ActionID
peer annotation, but
in case one was to create references to actions defined by someone else,
one can specify the id() here.public abstract int separatorBefore
ActionReference.position()
public abstract int separatorAfter
ActionReference.position()