Package com.nomagic.magicdraw.ui.actions
Class BaseDiagramContextAMConfigurator
- java.lang.Object
-
- com.nomagic.magicdraw.ui.actions.BaseDiagramContextAMConfigurator
-
- All Implemented Interfaces:
ConfiguratorWithPriority
,DiagramContextAMConfigurator
,PriorityProvider
- Direct Known Subclasses:
ActivityDiagramContextAMConfigurator
,ClassDiagramContextAMConfigurator
,CollaborationDiagramContextAMConfigurator
,CompositeStructureDiagramContextAMConfigurator
,SequenceDiagramContextAMConfigurator
,StateDiagramContextAMConfigurator
@OpenApiAll public class BaseDiagramContextAMConfigurator extends java.lang.Object implements DiagramContextAMConfigurator
Configure context menu, adds relations menu items
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LayoutID
-
Fields inherited from interface com.nomagic.magicdraw.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BaseDiagramContextAMConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)
Configure given actions manager for given diagram.protected void
configureDiagramActions(ActionsManager manager, DiagramPresentationElement dpe)
protected void
configureMultipleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected)
protected void
configureSingleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)
protected ActionsCategory
createLayoutActionsCategory()
int
getPriority()
Returns priority of this configurator.
-
-
-
Field Detail
-
LayoutID
public static final java.lang.String LayoutID
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)
Configure given actions manager for given diagram.- Specified by:
configure
in interfaceDiagramContextAMConfigurator
- Parameters:
manager
- the given actions manager.diagram
- the given diagram panel.selected
- the selected object in the diagram.requester
- object which requests actions, can be null if requester is diagram window.
-
configureSingleSelectionActions
protected void configureSingleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)
-
configureMultipleSelectionActions
protected void configureMultipleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected)
-
configureDiagramActions
protected void configureDiagramActions(ActionsManager manager, DiagramPresentationElement dpe)
-
createLayoutActionsCategory
protected ActionsCategory createLayoutActionsCategory()
-
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
-
-