Enum LocationInTool

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LocationInTool>

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

      Constructors 
      Modifier Constructor Description
      private LocationInTool()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LocationInTool valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LocationInTool[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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
    • Constructor Detail

      • LocationInTool

        private LocationInTool()
    • Method Detail

      • values

        public static LocationInTool[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LocationInTool c : LocationInTool.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LocationInTool valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null