Class DefaultActiveDiagramAction

java.lang.Object
javax.swing.AbstractAction
com.nomagic.actions.NMAction
com.nomagic.magicdraw.actions.MDAction
com.dassault_systemes.modeler.magic.ui.diagrams.actions.DefaultAbstractDiagramAction
com.nomagic.magicdraw.ui.actions.DefaultDiagramAction
com.nomagic.magicdraw.ui.actions.DefaultActiveDiagramAction
All Implemented Interfaces:
com.dassault_systemes.modeler.magic.ui.diagrams.actions.AbstractDiagramAction, DiagramAction, com.nomagic.magicdraw.actions.ShortcutSchemaAction, ActionListener, Serializable, Cloneable, Comparable, EventListener, Action

@OpenApiAll public class DefaultActiveDiagramAction extends DefaultDiagramAction
Action is used for the actions shared in diagram and application environments When getting diagram, if there are no diagram applied to the action - returns active diagram
See Also:
  • Constructor Details

    • DefaultActiveDiagramAction

      public DefaultActiveDiagramAction(@CheckForNull String actionID, @CheckForNull String actionName, @CheckForNull KeyStroke stroke, @CheckForNull String group)
    • DefaultActiveDiagramAction

      public DefaultActiveDiagramAction(@CheckForNull String actionID, @CheckForNull String actionName, @CheckForNull KeyStroke stroke, @CheckForNull String group, boolean useSchema)
  • Method Details

    • getDiagram

      @CheckForNull public DiagramPresentationElement getDiagram()
      Returns diagram of this action. MagicDraw framework guarantee that diagram will set if this method is called from updateState() or actionPerformed(ActionEvent) methods.
      Overrides:
      getDiagram in class DefaultDiagramAction
      Returns:
      set diagram