Package com.nomagic.magicdraw.ui.actions
Class BaseDiagramContextToolbarAMConfigurator
java.lang.Object
com.nomagic.magicdraw.ui.actions.BaseDiagramContextToolbarAMConfigurator
- All Implemented Interfaces:
ConfiguratorWithPriority
,DiagramContextToolbarAMConfigurator
,PriorityProvider
,PriorityProvider
@OpenApiAll
public class BaseDiagramContextToolbarAMConfigurator
extends Object
implements DiagramContextToolbarAMConfigurator
Configure context toolbar
-
Field Summary
Fields inherited from interface com.nomagic.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(ActionsManager manager, PresentationElement requestor) Configure given actions manager for given diagram.int
Returns priority of this configurator.
-
Constructor Details
-
BaseDiagramContextToolbarAMConfigurator
public BaseDiagramContextToolbarAMConfigurator()
-
-
Method Details
-
configure
Configure given actions manager for given diagram.- Specified by:
configure
in interfaceDiagramContextToolbarAMConfigurator
- Parameters:
manager
- the given actions manager.requestor
- the selected object in the diagram.
-
getPriority
public int getPriority()Description copied from interface:ConfiguratorWithPriority
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 case configurator must have lower priority than others.- Specified by:
getPriority
in interfaceConfiguratorWithPriority
- Specified by:
getPriority
in interfacePriorityProvider
- Returns:
- priority of this configurator.
- See Also:
-