@OpenApi
public final class ActionsProvider
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ActionsProvider.NotConfigurableActionsProvider |
Modifier and Type | Method and Description |
---|---|
ActionsManager |
getContainmentBrowserContextActions(BrowserTabTree tree)
Returns context actions manager for containment browser.
|
ActionsManager |
getContainmentBrowserShortcutsActions()
Returns actions manager for containment browser shortcuts.
|
ActionsManager |
getCreateDiagramDialogActions()
Creates and returns diagram creation actions to display in Create Diagram dialog
|
ActionsCreator |
getCreator()
Returns instance of actions creator.
|
ActionsManager |
getDiagramCommandBarActions(java.lang.String diagramType)
Returns actions of command bar for given diagram type.
|
ActionsManager |
getDiagramContextActions(java.lang.String diagramType,
DiagramPresentationElement diagram,
PresentationElement[] selected,
PresentationElement requester)
Returns context AM for given diagram type.
|
ActionsManager |
getDiagramContextToolbarActions(java.lang.String diagramType,
PresentationElement requester)
Returns context AM for given diagram type.
|
ActionsManager |
getDiagramsBrowserContextActions(BrowserTabTree tree)
Returns context actions manager for diagrams browser.
|
ActionsManager |
getDiagramsBrowserShortcutsActions()
Returns actions manager for diagrams browser shortcuts.
|
ActionsManager |
getDiagramShortcutActions(java.lang.String diagramType)
Returns AM for given diagram type shortcuts.
|
DiagramToolbarConfiguration |
getDiagramToolbarConfiguration(java.lang.String diagramType)
Returns AM for diagram toolbar.
|
ActionsManager |
getExtensionsBrowserContextActions(BrowserTabTree tree)
Returns context actions manager for containment browser.
|
ActionsManager |
getExtensionsBrowserShortcutsActions()
Returns shortcuts actions manager for inheritance browser.
|
ActionsManager |
getInheritanceBrowserContextActions(BrowserTabTree tree)
Returns context actions manager for inheritance browser.
|
ActionsManager |
getInheritanceBrowserShortcutsActions()
Returns shortcuts actions manager for inheritance browser.
|
static ActionsProvider |
getInstance()
Returns single instance of this class.
|
ActionsManager |
getLockViewBrowserShortcutsActions()
Returns shortcuts actions manager for inheritance browser.
|
ActionsManager |
getMainMenuActions()
Returns actions manager for main menu actions.
|
ActionsManager |
getMainShortcutsActions()
Returns actions manager for main shortcuts.
|
ActionsManager |
getMainToolbarActions()
Returns manager with actions for main toolbar.
|
ActionsManager |
getSearchBrowserContextActions(BrowserTabTree tree)
Returns context actions manager for search browser.
|
ActionsManager |
getSearchBrowserShortcutsActions()
Returns shortcuts actions manager for search browser.
|
ActionsManager |
getTargetElementAMActions(java.lang.String diagramType,
PresentationElement requester,
java.lang.String pathActionID)
Returns context AM for given diagram type.
|
void |
registerAction(NMAction action)
Registers the action as available in application - other components (such as Perspectives) should know what actions are available.
Action id must be stable/constant, It is not necessary to use the same action instance used when configuring appropriate menu/toolbar. |
void |
unregisterAction(NMAction action)
Remove the action as available in application.
|
@OpenApi public static ActionsProvider getInstance()
@OpenApi public ActionsManager getDiagramContextActions(java.lang.String diagramType, DiagramPresentationElement diagram, PresentationElement[] selected, @CheckForNull PresentationElement requester)
diagramType
- diagram typediagram
- the given diagram.selected
- array of selected symbols.requester
- symbol which requests actions, can be null if requester is diagram.@OpenApi public ActionsManager getTargetElementAMActions(java.lang.String diagramType, PresentationElement requester, java.lang.String pathActionID)
diagramType
- diagram typerequester
- symbol which requests actions, can be null if requester is diagram.pathActionID
- path action id@OpenApi public ActionsManager getDiagramContextToolbarActions(java.lang.String diagramType, PresentationElement requester)
diagramType
- diagram typerequester
- symbol which requests actions, can be null if requester is diagram.@OpenApi public DiagramToolbarConfiguration getDiagramToolbarConfiguration(java.lang.String diagramType)
diagramType
- diagram type@OpenApi public ActionsManager getDiagramCommandBarActions(@CheckForNull java.lang.String diagramType)
diagramType
- diagram type@OpenApi public ActionsManager getDiagramShortcutActions(java.lang.String diagramType)
diagramType
- diagram type@OpenApi public ActionsManager getMainMenuActions()
@OpenApi public ActionsManager getMainToolbarActions()
@OpenApi public ActionsManager getMainShortcutsActions()
@OpenApi public ActionsManager getContainmentBrowserContextActions(BrowserTabTree tree)
tree
- instance of tree.@OpenApi public ActionsManager getExtensionsBrowserContextActions(BrowserTabTree tree)
tree
- instance of tree.@OpenApi public ActionsManager getSearchBrowserContextActions(BrowserTabTree tree)
tree
- instance of tree.@OpenApi public ActionsManager getDiagramsBrowserContextActions(BrowserTabTree tree)
tree
- instance of tree.@OpenApi public ActionsManager getInheritanceBrowserContextActions(BrowserTabTree tree)
tree
- instance of tree.@OpenApi public ActionsManager getContainmentBrowserShortcutsActions()
@OpenApi public ActionsManager getDiagramsBrowserShortcutsActions()
@OpenApi public ActionsManager getInheritanceBrowserShortcutsActions()
@OpenApi public ActionsManager getLockViewBrowserShortcutsActions()
@OpenApi public ActionsManager getExtensionsBrowserShortcutsActions()
@OpenApi public ActionsManager getSearchBrowserShortcutsActions()
@OpenApi public ActionsCreator getCreator()
@OpenApi public ActionsManager getCreateDiagramDialogActions()
@OpenApi public void registerAction(NMAction action)
action
- action to register.unregisterAction(com.nomagic.actions.NMAction)
@OpenApi public void unregisterAction(NMAction action)
action
- action to remove.registerAction(com.nomagic.actions.NMAction)