@OpenApi
public final class ActionsConfiguratorsManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addAnyDiagramCommandBarConfigurator(AMConfigurator configurator)
Registers configurator for any type of diagrams.
|
void |
addAnyDiagramShortcutsConfigurator(AMConfigurator configurator)
Adds configurator for any type diagram.
|
void |
addBaseDiagramContextConfigurator(java.lang.String diagramType,
DiagramContextAMConfigurator configurator)
Adds new diagram context configurator for given diagram type.
|
void |
addContainmentBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Adds new context configurator to containment browser.
|
void |
addContainmentBrowserShortcutsConfigurator(AMConfigurator configurator)
Adds new shortcuts configurator to containment browser.
|
void |
addContainmentBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Adds new Toolbar configurator to containment browser.
|
void |
addCreateDiagramDialogConfigurator(AMConfigurator configurator)
Adds configurator to configure actions inside the dialog which opens when action in main menu or toolbar "Create Diagram" is executed.
|
void |
addCustomizableShortcutsConfigurator(AMConfigurator configurator)
Adds configurator for main shortcuts.
|
void |
addDiagramCommandBarConfigurator(AMConfigurator configurator)
Deprecated.
deprecated because of too generic name. Use
addSymbolDiagramCommandBarConfigurator(AMConfigurator) |
void |
addDiagramCommandBarConfigurator(java.lang.String diagramType,
AMConfigurator configurator)
Add configurator for diagram of given type.
|
void |
addDiagramContextConfigurator(java.lang.String diagramType,
DiagramContextAMConfigurator configurator)
Adds new diagram context configurator for given diagram type.
|
void |
addDiagramContextToolbarConfigurator(java.lang.String diagramType,
DiagramContextToolbarAMConfigurator configurator)
Adds new toolbar configurator for given diagram type.
|
void |
addDiagramNavigationConfigurator(AMConfigurator configurator)
Adds configurator to diagram navigation toolbar.
|
void |
addDiagramsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Adds new context configurator to diagrams browser.
|
void |
addDiagramsBrowserShortcutsConfigurator(AMConfigurator configurator)
Adds new shortcuts configurator to diagrams browser.
|
void |
addDiagramsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Adds new Toolbar configurator to diagrams browser.
|
void |
addDiagramShortcutsConfigurator(java.lang.String diagramType,
AMConfigurator configurator)
Adds new shortcuts configurator for given diagram type.
|
void |
addDiagramToolbarActionsProvider(java.lang.String diagramType,
CustomizableDiagramToolbarActionsProvider provider)
Adds new toolbar provider for given diagram type.
|
void |
addDiagramToolbarConfigurator(java.lang.String diagramType,
AMConfigurator configurator)
Adds new toolbar configurator for given diagram type.
|
static void |
addDialogActionsConfigurator(java.lang.String categoryID,
ActionsManager manager,
AMConfigurator configurator)
Adds configurator to configure actions inside specific popup dialog which constructs it's actions only when respective popup menu item is clicked.
|
void |
addExtensionsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Adds new context configurator to extensions browser.
|
void |
addExtensionsBrowserShortcutsConfigurator(AMConfigurator configurator)
Adds new shortcuts configurator to extensions browser.
|
void |
addExtensionsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Adds new Toolbar configurator to extensions browser.
|
void |
addInheritanceBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Adds new context configurator to inheritance browser.
|
void |
addInheritanceBrowserShortcutsConfigurator(AMConfigurator configurator)
Adds new shortcuts configurator to inheritance browser.
|
void |
addInheritanceBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Adds new context configurator to inheritance browser.
|
void |
addLockViewBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Adds new context configurator to lock view browser.
|
void |
addLockViewBrowserShortcutsConfigurator(AMConfigurator configurator)
Adds new shortcuts configurator to lock view browser.
|
void |
addLockViewBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Adds new context configurator to inheritance browser.
|
void |
addMainMenuConfigurator(AMConfigurator configurator)
Adds configurator to main menu.
|
void |
addMainShortcutsConfigurator(AMConfigurator configurator)
Adds configurator for main shortcuts.
|
void |
addMainToolbarConfigurator(AMConfigurator configurator)
Adds configurator to main toolbar.
|
void |
addSearchBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Adds new context configurator for search browser.
|
void |
addSearchBrowserShortcutsConfigurator(AMConfigurator configurator)
Adds new shortcuts configurator to search browser.
|
void |
addSearchBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Adds new Toolbar configurator for search browser.
|
void |
addSymbolDiagramCommandBarConfigurator(AMConfigurator configurator)
Add configurator for any type of "symbol" diagrams Those do not include tables, maps, matrices and etc.
|
void |
addSymbolDiagramShortcutsConfigurator(AMConfigurator configurator)
Adds configurator for any "symbol" diagram.
|
void |
addTargetElementAMConfigurator(java.lang.String diagramType,
TargetElementAMConfigurator configurator)
Adds new drawable targets configurator in context toolbar for given diagram type
|
void |
configureTargetElementAM(java.lang.String diagramType,
ActionsManager manager,
PresentationElement requestor,
java.lang.String pathActionID)
Configures given diagram type drawable targets.
|
static ActionsConfiguratorsManager |
getInstance()
Returns shared instance of this manager.
|
void |
removeAnyDiagramCommandBarConfigurator(AMConfigurator configurator)
Remove configurator for any type diagrams.
|
void |
removeAnyDiagramShortcutsConfigurator(AMConfigurator configurator)
Removes configurator from any type diagram.
|
void |
removeBaseDiagramContextConfigurator(java.lang.String diagramType,
DiagramContextAMConfigurator configurator)
Removes given configurator from given diagram type context configurators.
|
void |
removeContainmentBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Removes context configurator from containment browser.
|
void |
removeContainmentBrowserShortcutsConfigurator(AMConfigurator configurator)
Removes shortcuts configurator from containment browser.
|
void |
removeContainmentBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Removes Toolbar configurator from containment browser.
|
void |
removeCreateDiagramDialogConfigurator(AMConfigurator configurator)
Remove configurator to configure actions inside "Create Diagram" dialog.
|
void |
removeCustomizableShortcutsConfigurator(AMConfigurator configurator)
Removes configurator for main shortcuts.
|
void |
removeDiagramCommandBarConfigurator(AMConfigurator configurator)
Deprecated.
deprecated because of too generic name. Use
removeSymbolDiagramCommandBarConfigurator(AMConfigurator) |
void |
removeDiagramCommandBarConfigurator(java.lang.String diagramType,
AMConfigurator configurator)
Remove configurator for diagram of given type.
|
void |
removeDiagramContextConfigurator(java.lang.String diagramType,
DiagramContextAMConfigurator configurator)
Removes given configurator from given diagram type context configurators.
|
void |
removeDiagramContextToolbarConfigurator(java.lang.String diagramType,
DiagramContextToolbarAMConfigurator configurator)
Removes configurator from given diagram toolbar configurators.
|
void |
removeDiagramNavigationConfigurator(AMConfigurator configurator)
Removes configurator from diagram navigation configuration.
|
void |
removeDiagramsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Removes context configurator from diagrams browser.
|
void |
removeDiagramsBrowserShortcutsConfigurator(AMConfigurator configurator)
Removes shortcuts configurator from diagrams browser.
|
void |
removeDiagramsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Removes Toolbar configurator from diagrams browser.
|
void |
removeDiagramShortcutsConfigurator(java.lang.String diagramType,
AMConfigurator configurator)
Removes configurator from given diagram type shortcuts configurators.
|
void |
removeDiagramToolbarActionsProvider(java.lang.String diagramType,
CustomizableDiagramToolbarActionsProvider provider)
Removes action provider for specified diagram type.
|
void |
removeDiagramToolbarConfigurator(java.lang.String diagramType,
AMConfigurator configurator)
Removes configurator from given diagram toolbar configurators.
|
void |
removeExtensionsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Removes context configurator from extensions browser.
|
void |
removeExtensionsBrowserShortcutsConfigurator(AMConfigurator configurator)
Removes shortcuts configurator from extensions browser.
|
void |
removeExtensionsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Removes Toolbar configurator from extensions browser.
|
void |
removeInheritanceBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Removes context configurator from inheritance browser.
|
void |
removeInheritanceBrowserShortcutsConfigurator(AMConfigurator configurator)
Removes shortcuts configurator from inheritance browser.
|
void |
removeInheritanceBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Removes context configurator from inheritance browser.
|
void |
removeLockViewBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Removes context configurator from lock view browser.
|
void |
removeLockViewBrowserShortcutsConfigurator(AMConfigurator configurator)
Removes shortcuts configurator from lock view browser.
|
void |
removeLockViewBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Removes context configurator from inheritance browser.
|
void |
removeMainMenuConfigurator(AMConfigurator configurator)
Removes configurator from main menu configuration.
|
void |
removeMainShortcutsConfigurator(AMConfigurator configurator)
Removes configurator for main shortcuts.
|
void |
removeMainToolbarConfigurator(AMConfigurator configurator)
Removes configurator from main toolbar.
|
void |
removeSearchBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
Removes context configurator from search browser.
|
void |
removeSearchBrowserShortcutsConfigurator(AMConfigurator configurator)
Removes shortcuts configurator from search browser.
|
void |
removeSearchBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
Removes Toolbar configurator from search browser.
|
void |
removeSymbolDiagramCommandBarConfigurator(AMConfigurator configurator)
Remove configurator for any type "symbol" diagrams Those do not include tables, maps, matrices and etc.
|
void |
removeSymbolDiagramShortcutsConfigurator(AMConfigurator configurator)
Removes configurator from any "symbol" diagram.
|
void |
removeTargetElementAMConfigurator(java.lang.String diagramType,
TargetElementAMConfigurator configurator)
Removes drawable targets configurator for given diagram type
|
@OpenApi public static ActionsConfiguratorsManager getInstance()
@OpenApi public void addTargetElementAMConfigurator(java.lang.String diagramType, TargetElementAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be added.@OpenApi public void removeTargetElementAMConfigurator(java.lang.String diagramType, TargetElementAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be added.@OpenApi public void configureTargetElementAM(java.lang.String diagramType, ActionsManager manager, PresentationElement requestor, java.lang.String pathActionID)
diagramType
- diagram typemanager
- manager to be configured.requestor-
- object which requests actions, can be null if requestor is diagram window.@OpenApi public void addDiagramContextToolbarConfigurator(java.lang.String diagramType, DiagramContextToolbarAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be added.@OpenApi public void removeDiagramContextToolbarConfigurator(java.lang.String diagramType, DiagramContextToolbarAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be removed.@OpenApi public void addDiagramContextConfigurator(java.lang.String diagramType, DiagramContextAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- new configurator to add.@OpenApi public void addBaseDiagramContextConfigurator(java.lang.String diagramType, DiagramContextAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- new configurator to add.@OpenApi public void removeDiagramContextConfigurator(java.lang.String diagramType, DiagramContextAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to remove.@OpenApi public void removeBaseDiagramContextConfigurator(java.lang.String diagramType, DiagramContextAMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to remove.@OpenApi @Deprecated public void addDiagramCommandBarConfigurator(AMConfigurator configurator)
addSymbolDiagramCommandBarConfigurator(AMConfigurator)
configurator
- configurator to be added.@OpenApi @Deprecated public void removeDiagramCommandBarConfigurator(AMConfigurator configurator)
removeSymbolDiagramCommandBarConfigurator(AMConfigurator)
configurator
- configurator to be removed.@OpenApi public void addSymbolDiagramCommandBarConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeSymbolDiagramCommandBarConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addAnyDiagramCommandBarConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeAnyDiagramCommandBarConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addDiagramCommandBarConfigurator(java.lang.String diagramType, AMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be added.@OpenApi public void removeDiagramCommandBarConfigurator(java.lang.String diagramType, AMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be removed.@OpenApi public void addDiagramToolbarConfigurator(java.lang.String diagramType, AMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be added.@OpenApi public void removeDiagramToolbarConfigurator(java.lang.String diagramType, AMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be removed.@OpenApi public void addAnyDiagramShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeAnyDiagramShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addSymbolDiagramShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeSymbolDiagramShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addDiagramShortcutsConfigurator(java.lang.String diagramType, AMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be added.@OpenApi public void removeDiagramShortcutsConfigurator(java.lang.String diagramType, AMConfigurator configurator)
diagramType
- diagram typeconfigurator
- configurator to be removed.@OpenApi public void addInheritanceBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeInheritanceBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addDiagramsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeDiagramsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addLockViewBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeLockViewBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addContainmentBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeContainmentBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addExtensionsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeExtensionsBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addSearchBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeSearchBrowserContextConfigurator(BrowserContextAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addInheritanceBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeInheritanceBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addDiagramsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeDiagramsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addLockViewBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeLockViewBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addContainmentBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeContainmentBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addExtensionsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeExtensionsBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addSearchBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeSearchBrowserToolbarConfigurator(BrowserToolbarAMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addInheritanceBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeInheritanceBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addDiagramsBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeDiagramsBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addLockViewBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeLockViewBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addExtensionsBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeExtensionsBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addSearchBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeSearchBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void addContainmentBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be added.@OpenApi public void removeContainmentBrowserShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed.@OpenApi public void removeMainMenuConfigurator(AMConfigurator configurator)
configurator
- configurator to remove.@OpenApi public void addMainMenuConfigurator(AMConfigurator configurator)
configurator
- configurator will be added.@OpenApi public void addCreateDiagramDialogConfigurator(AMConfigurator configurator)
addDialogActionsConfigurator(String, ActionsManager, AMConfigurator)
configurator
- actions configurator@OpenApi public void removeCreateDiagramDialogConfigurator(AMConfigurator configurator)
configurator
- configurator to be removed@OpenApi public static void addDialogActionsConfigurator(java.lang.String categoryID, ActionsManager manager, AMConfigurator configurator)
Call this method inside BrowserContextAMConfigurator.configure(ActionsManager, Tree)
in order to configure browser context menu actions.
Call this method inside (@link DiagramContextAMConfigurator.configure(ActionsManager, DiagramPresentationElement, PresentationElement[], PresentationElement)
to configure diagram context menu actions
categoryID
- id of the category which represents the dialog to be configured. Most common examples:ActionsID.NEW_ELEMENT_CATEGORY_ID
- to configure "Create Element" context actionActionsID.NEW_DIAGRAM_CATEGORY_ID
- to configure "Create Diagram" context actionActionsID.NEW_RELATION_CATEGORY_FROM_ID
- to configure "Create Relation->Outgoing" context actionActionsID.NEW_RELATION_CATEGORY_TO_ID
- to configure "Create Relation->Outgoing" context actionmanager
- actions manager that contains the category with the given id.
Category may be empty at the time this method is called. since category actions are only created when the menu item is clicked
Category may not exist in the manager, in that case nothing will get configured.
Category should not be added to the manager manually if it is not present.configurator
- actions configurator which will be called when constructing actions (when displaying the dialog with actions)@OpenApi public void removeDiagramNavigationConfigurator(AMConfigurator configurator)
configurator
- configurator to remove.@OpenApi public void addDiagramNavigationConfigurator(AMConfigurator configurator)
configurator
- configurator to add.@OpenApi public void removeMainShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator will be removed.@OpenApi public void addMainShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator will be added.@OpenApi public void removeCustomizableShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator will be removed.@OpenApi public void addCustomizableShortcutsConfigurator(AMConfigurator configurator)
configurator
- configurator will be added.@OpenApi public void addMainToolbarConfigurator(AMConfigurator configurator)
configurator
- configurator will be added.@OpenApi public void removeMainToolbarConfigurator(AMConfigurator configurator)
configurator
- configurator will be removed.@OpenApi public void addDiagramToolbarActionsProvider(java.lang.String diagramType, CustomizableDiagramToolbarActionsProvider provider)
diagramType
- diagram type.provider
- action provider to be added.@OpenApi public void removeDiagramToolbarActionsProvider(java.lang.String diagramType, CustomizableDiagramToolbarActionsProvider provider)
diagramType
- diagram typeprovider
- action provider to be removed.