Package com.nomagic.magicdraw.ui.actions
Class AnyDiagramShortcutsConfigurator
- java.lang.Object
-
- com.nomagic.magicdraw.ui.actions.AnyDiagramShortcutsConfigurator
-
- All Implemented Interfaces:
AMConfigurator
,ConfiguratorWithPriority
,PriorityProvider
- Direct Known Subclasses:
BaseDiagramShortcutsConfigurator
@OpenApiAll public abstract class AnyDiagramShortcutsConfigurator extends java.lang.Object implements AMConfigurator
Configure shortcuts for all diagrams - symbolic and others.
-
-
Field Summary
-
Fields inherited from interface com.nomagic.magicdraw.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AnyDiagramShortcutsConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureCommonActions(ActionsManager manager, java.lang.String diagramType)
Configure actions in given managerint
getPriority()
Returns priority of this configurator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nomagic.actions.AMConfigurator
configure
-
-
-
-
Method Detail
-
configureCommonActions
public void configureCommonActions(ActionsManager manager, @CheckForNull java.lang.String diagramType)
Configure actions in given manager- Parameters:
diagramType
- optional diagram typemanager
- manager
-
getPriority
public int getPriority()
Description copied from interface:AMConfigurator
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.
The default implementation returns #LOW_PRIORITY- Specified by:
getPriority
in interfaceAMConfigurator
- 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
-
-