| |
|
| org.netbeans.core.options.keymap.api.ShortcutAction
All known Subclasses: org.netbeans.modules.options.keymap.CompoundAction,
ShortcutAction | public interface ShortcutAction (Code) | | A special object for representing the action to which the shortcut
is bound. As we are able to represent different kinds of actions (
(e.g. represented by javax.swing.Action or javax.swing.text.TextAction)
the instances of this interface wrap the original action and provide
methods contained in this interface.
author: David Strupl |
Method Summary | |
public String | getDelegatingActionId() If the same action is supplied by more KeymapManagers they can "know"
about each other. | public String | getDisplayName() The display name is what the user can see when the shortcut
is displayed in the configuration dialogs. | public String | getId() The ID of the shortcut action. | public ShortcutAction | getKeymapManagerInstance(String keymapManagerName) If the action is "compound" action (delegating to different actions
for different keymapManagers) this method returns the instance registered
in the given manager. |
getDelegatingActionId | public String getDelegatingActionId()(Code) | | If the same action is supplied by more KeymapManagers they can "know"
about each other. If the action "knows" what the ID of the action
is coming from the other provider it can supply it by returning a non-null
value from this method. An example: actions coming from the editor
can supply the class name of the corresponding openide action, e.g.
org.openide.actions.CutAction.
|
getDisplayName | public String getDisplayName()(Code) | | The display name is what the user can see when the shortcut
is displayed in the configuration dialogs.
the display name |
getId | public String getId()(Code) | | The ID of the shortcut action. It is the action class name or some
other unique identification of the action ("cut-to-clipboard" or
"org.openide.actions.CutAction").
|
getKeymapManagerInstance | public ShortcutAction getKeymapManagerInstance(String keymapManagerName)(Code) | | If the action is "compound" action (delegating to different actions
for different keymapManagers) this method returns the instance registered
in the given manager. If the action is not composed of more actions
this method should simply return this .
Parameters: keymapManagerName - |
|
|
|