Annotation Type ActionReference
Registers an action under associated identifier specified by separate
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:
- menu -
path="Menu/File"
,path="Menu/Edit"
, etc. - toolbar -
path="Toolbars/Edit"
and other peer directories - shortcuts -
path="Shortcuts" name="C-F2 D-A"
, seeUtilities.stringToKeys(java.lang.String)
andUtilities.stringToKey(java.lang.String)
for description of valid reference names - context menus -
path="Loaders/text/xml"
, and other mime types
- Since:
- 7.27
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionIdentification of the action this reference shall point to.One can specify name of the reference.int
Position in the location.int
Shall a separator be placed after the action?int
Shall a separator be placed before the action?
-
Element Details
-
path
String pathInto which location one wants to place the reference? Translates toFileUtil.getConfigFile(java.lang.String)
. -
position
int positionPosition in the location.- Default:
2147483647
-
id
-
name
-
separatorBefore
int separatorBeforeShall a separator be placed before the action?- Returns:
- position that is lower than
position()
- Default:
2147483647
-
separatorAfter
int separatorAfterShall a separator be placed after the action?- Returns:
- position that is higher than
position()
- Default:
2147483647
-