|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.openapi.actionSystem.ActionManager
public abstract class ActionManager
A manager for actions. Used to register and unregister actions, also contains utility methods to easily fetch action by id and id by action.
AnAction| Constructor Summary | |
|---|---|
ActionManager()
|
|
| Method Summary | |
|---|---|
abstract ActionPopupMenu |
createActionPopupMenu(java.lang.String place,
ActionGroup group)
Factory method that creates an ActionPopupMenu from the
specified group. |
abstract ActionToolbar |
createActionToolbar(java.lang.String place,
ActionGroup group,
boolean horizontal)
Factory method that creates an ActionToolbar from the
specified group. |
abstract AnAction |
getAction(java.lang.String actionId)
Returns action associated with the specified actionId. |
abstract java.lang.String |
getId(AnAction action)
Returns actionId associated with the specified action. |
static ActionManager |
getInstance()
Fetches the instance of ActionManager implementation. |
abstract void |
registerAction(java.lang.String actionId,
AnAction action)
Registers the specified action with the specified id. |
abstract void |
registerAction(java.lang.String actionId,
AnAction action,
PluginId pluginId)
Registers the specified action with the specified id. |
abstract void |
unregisterAction(java.lang.String actionId)
Unregisters the action with the specified actionId. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionManager()
| Method Detail |
|---|
public static ActionManager getInstance()
public abstract ActionPopupMenu createActionPopupMenu(java.lang.String place,
ActionGroup group)
ActionPopupMenu from the
specified group. The specified place is associated with the created popup.
place - Determines the place that will be set for AnActionEvent passed
when an action from the group is either performed or updatedgroup - Group from which the actions for the menu are taken.
ActionPopupMenu
public abstract ActionToolbar createActionToolbar(java.lang.String place,
ActionGroup group,
boolean horizontal)
ActionToolbar from the
specified group. The specified place is associated with the created toolbar.
place - Determines the place that will be set for AnActionEvent passed
when an action from the group is either performed or updatedgroup - Group from which the actions for the toolbar are taken.horizontal - The orientation of the toolbar (true - horizontal, false - vertical)
ActionToolbar
public abstract AnAction getAction(@NotNull
java.lang.String actionId)
actionId - Id of the registered action
null if
there is no actions associated with the speicified actionId
java.lang.IllegalArgumentException - if actionId is null
public abstract java.lang.String getId(@NotNull
AnAction action)
null if action
is not registered
java.lang.IllegalArgumentException - if action is null
public abstract void registerAction(@NotNull
java.lang.String actionId,
@NotNull
AnAction action)
actionId - Id to associate with the actionaction - Action to register
public abstract void registerAction(@NotNull
java.lang.String actionId,
@NotNull
AnAction action,
@Nullable
PluginId pluginId)
actionId - Id to associate with the actionaction - Action to registerpluginId - Identifier of the plugin owning the action. Used to show the actions in the
correct place under the "Plugins" node in the "Keymap" settings pane and similar dialogs.
public abstract void unregisterAction(@NotNull
java.lang.String actionId)
actionId - Id of the action to be unregistered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||