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 TypeMethodDescriptionvoidconfigure(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester) Configure given actions manager for given diagram.protected voidconfigureDiagramActions(ActionsManager manager, DiagramPresentationElement dpe) protected voidconfigureMultipleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected) protected voidconfigureSingleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester) protected ActionsCategoryintReturns 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:DiagramContextAMConfiguratorConfigure given actions manager for given diagram.- Specified by:
configurein 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:ConfiguratorWithPriorityReturns 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:
getPriorityin interfaceConfiguratorWithPriority- Specified by:
getPriorityin interfacePriorityProvider- Returns:
- priority of this configurator.
- See Also:
-