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