Interface ActionManager
- All Known Implementing Classes:
ActionManagerImpl
public interface ActionManager
Provides access to action registry and factory methods for context menus and menu bars.
Modules can register their actions as available for other modules to use using
registerAction(AnAction)
method.
To unregister action use unregisterAction(AnAction)
method.
-
Method Summary
Modifier and TypeMethodDescriptioncreateContextMenu
(AnActionGroup group) Creating context menu WARNING!createMenuBar
(AnActionGroup group) void
disposeContextMenu
(ActionContextMenu contextMenu) void
disposeMenuBar
(ActionMenuBar menuBar) void
registerAction
(AnAction action) Register action to be available in other modulesvoid
unregisterAction
(AnAction action)
-
Method Details
-
registerAction
Register action to be available in other modules- Parameters:
action
- - action to register
-
unregisterAction
-
createContextMenu
Creating context menu WARNING! Don't forget to have a strong reference on ActionContextMenu Else GC will delete object -
disposeContextMenu
-
createMenuBar
-
disposeMenuBar
-