Package com.nomagic.actions
Interface AMConfigurator
- All Superinterfaces:
ConfiguratorWithPriority
,PriorityProvider
,PriorityProvider
- All Known Implementing Classes:
ActivityDiagramShortcutsConfigurator
,AnyDiagramShortcutsConfigurator
,BaseDiagramShortcutsConfigurator
,BaseDiagramToolbarConfigurator
,ClassDiagramShortcutsConfigurator
,CommunicationDiagramShortcutsConfigurator
,ComponentDiagramShortcutsConfigurator
,DeploymentDiagramShortcutsConfigurator
,ObjectDiagramShortcutsConfigurator
,PackageDiagramShortcutsConfigurator
,ProfileDiagramShortcutsConfigurator
,SequenceDiagramShortcutsConfigurator
,StateDiagramShortcutsConfigurator
,UseCaseDiagramShortcutsConfigurator
Interface for configuring Actions manager.
Configurator should add/remove necessary actions.
-
Field Summary
Fields inherited from interface com.nomagic.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(ActionsManager manager) Method for configuring manager.default int
Returns priority of this configurator.
-
Method Details
-
configure
Method for configuring manager. During this call, new actions can be added to manager. Also existing actions can be removed from the given manager.- Parameters:
manager
- actions manager to be configured.
-
getPriority
default int getPriority()Returns priority of this configurator. All configurators are sorted by priority before configuration. This is very important if one configurator expects input from other configurators. In such a case configurator must have lower priority than others.
The default implementation returns #LOW_PRIORITY- Specified by:
getPriority
in interfaceConfiguratorWithPriority
- Specified by:
getPriority
in interfacePriorityProvider
- Returns:
- priority of this configurator.
- See Also:
-