Class DefaultBrowserStateAction

All Implemented Interfaces:
BrowserAction, com.nomagic.magicdraw.actions.ShortcutSchemaAction, ActionListener, Serializable, Cloneable, Comparable, EventListener, Action

@OpenApiAll public class DefaultBrowserStateAction extends MDStateAction implements BrowserAction
The default implementation of BrowserAction and MDStateAction.
See Also:
  • Constructor Details

    • DefaultBrowserStateAction

      public DefaultBrowserStateAction(String actionID, String actionName, @CheckForNull KeyStroke stroke, String group)
      Constructs new action.
      Parameters:
      actionID - the action ID.
      actionName - the action name.
      stroke - the action stroke.
      group - the action group.
  • Method Details

    • setTree

      public void setTree(Tree tree)
      Set tree for this action.
      Specified by:
      setTree in interface BrowserAction
      Parameters:
      tree - the browser for this action.
    • getTree

      public Tree getTree()
      Return tree of this action. MagicDraw framework guarantee that tree will set if this method is called from updateState() or actionPerformed(ActionEvent) methods.
      Returns:
      tree of this action.