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 java.lang.Object implements DiagramContextToolbarAMConfigurator
Configure context toolbar
-
-
Field Summary
-
Fields inherited from interface com.nomagic.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BaseDiagramContextToolbarAMConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(ActionsManager manager, PresentationElement requestor)
Configure given actions manager for given diagram.int
getPriority()
Returns priority of this configurator.
-
-
-
Method Detail
-
configure
public void configure(ActionsManager manager, PresentationElement requestor)
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:
PriorityProvider.HIGH_PRIORITY
,PriorityProvider.MEDIUM_PRIORITY
,PriorityProvider.LOW_PRIORITY
-
-