Enum Class LocationInTool

java.lang.Object
java.lang.Enum<LocationInTool>
com.nomagic.magicdraw.ui.LocationInTool
All Implemented Interfaces:
Serializable, Comparable<LocationInTool>, Constable

@OpenApiAll public enum LocationInTool extends Enum<LocationInTool>
Location in MagicDraw tool. Used as invocation information for some actions (Element creation, diagram opening, representation text creation and etc.)
  • Enum Constant Details

    • unknown

      public static final LocationInTool unknown
      undefined context
    • application

      public static final LocationInTool application
      application wide context, i.e a notification or some ui element that is used in many places
    • project_window

      public static final LocationInTool project_window
      project specific window location, i.e validation results or find usages
    • specification_dialog

      public static final LocationInTool specification_dialog
      element specification dialog
    • main_toolbar

      public static final LocationInTool main_toolbar
      main MD menu and toolbar
    • browser

      public static final LocationInTool browser
      browser (containment) window
    • diagram

      public static final LocationInTool diagram
      inside the diagram panel
    • diagram_toolbar

      public static final LocationInTool diagram_toolbar
      top toolbar bar of the diagram
    • diagram_context_menu

      public static final LocationInTool diagram_context_menu
      a context menu inside the diagram panel
    • diagram_window_tab_context_menu

      public static final LocationInTool diagram_window_tab_context_menu
      a context menu for a diagram window tab
  • Method Details

    • values

      public static LocationInTool[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LocationInTool valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null