Package com.nomagic.magicdraw.ui
Enum LocationInTool
- java.lang.Object
-
- java.lang.Enum<LocationInTool>
-
- com.nomagic.magicdraw.ui.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.)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description application
application wide context, i.e a notification or some ui element that is used in many placesbrowser
browser (containment) windowdiagram
inside the diagram paneldiagram_context_menu
a context menu inside the diagram paneldiagram_toolbar
top toolbar bar of the diagramdiagram_window_tab_context_menu
a context menu for a diagram window tabmain_toolbar
main MD menu and toolbarproject_window
project specific window location, i.e validation results or find usagesspecification_dialog
element specification dialogunknown
undefined context
-
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.
-
-
-
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
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-