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.StringLayoutID-
Fields inherited from interface com.nomagic.magicdraw.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BaseDiagramContextAMConfigurator()
-
Method Summary
-
-
-
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:
configurein 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)
-
addValidationCategory
private static void addValidationCategory(ActionsManager manager, java.util.List<Element> elements)
-
configureMultipleSelectionActions
protected void configureMultipleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected)
-
addEditCompartmentAction
private static void addEditCompartmentAction(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected)
-
addSymbolsPropertiesActions
private static void addSymbolsPropertiesActions(ActionsManager manager, PresentationElement[] selected)
-
addOpenDiagramsCategory
private static void addOpenDiagramsCategory(ActionsManager manager, PresentationElement[] selected)
Adds a category with action to open diagrams in a new tab to the top of the actions manager- Parameters:
manager- managerselected- selected diagram shapes
-
configureDiagramActions
protected void configureDiagramActions(ActionsManager manager, DiagramPresentationElement dpe)
-
createLayoutActionsCategory
protected ActionsCategory 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:
PriorityProvider.HIGH_PRIORITY,PriorityProvider.MEDIUM_PRIORITY,PriorityProvider.LOW_PRIORITY
-
isSameType
private static boolean isSameType(PresentationElement[] selected, java.lang.Class type)
-
-