Package com.nomagic.magicdraw.ui.dialogs
Class SelectElementTypes
java.lang.Object
com.nomagic.magicdraw.ui.dialogs.SelectElementTypes
Element types for element(s) selection dialog.
-
Field Summary
Modifier and TypeFieldDescriptionThe types (metaclasses) of elements or stereotypes that can be created in the select element dialog.The types (metaclasses) of elements that should be displayed in the select element dialog.The types (metaclasses) of elements or stereotypes that restricts the element selection.The types (metaclasses) of elements that can be selected in the select element dialog.boolean
The result will be used as "type", so possible elements should be filtered by DSL engine doNotSuggestAsType flag. -
Constructor Summary
ConstructorDescriptionSelectElementTypes
(ElementListProperty property, boolean creatable) SelectElementTypes
(ElementListProperty property, boolean creatable, boolean appendOwnersToCreatable) SelectElementTypes
(ElementProperty property, boolean creatable) SelectElementTypes
(ElementProperty property, boolean creatable, boolean appendOwnersToCreatable) SelectElementTypes
(Collection display, Collection select) SelectElementTypes
(Collection display, Collection select, Stereotype stereotype) SelectElementTypes
(Collection display, Collection select, Collection create) Constructor.SelectElementTypes
(Collection display, Collection select, Collection create, boolean appendOwnersToCreatable) Constructor.SelectElementTypes
(Collection display, Collection select, Collection create, Collection restricted) Constructor.SelectElementTypes
(Collection display, Collection select, Collection create, Collection restricted, boolean appendOwnersToCreatable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectElementTypes
An utility method to create an instance for given property.static SelectElementTypes
An utility method to create an instance for given property.
-
Field Details
-
display
The types (metaclasses) of elements that should be displayed in the select element dialog. -
select
The types (metaclasses) of elements that can be selected in the select element dialog. -
create
The types (metaclasses) of elements or stereotypes that can be created in the select element dialog. Stereotype means that element with the applied stereotype will be created. -
restricted
The types (metaclasses) of elements or stereotypes that restricts the element selection. If the restricted element is stereotype - only element that has applied this stereotype can be selected. -
usedAsTypes
public boolean usedAsTypesThe result will be used as "type", so possible elements should be filtered by DSL engine doNotSuggestAsType flag.
-
-
Constructor Details
-
SelectElementTypes
-
SelectElementTypes
public SelectElementTypes(ElementProperty property, boolean creatable, boolean appendOwnersToCreatable) -
SelectElementTypes
-
SelectElementTypes
public SelectElementTypes(ElementListProperty property, boolean creatable, boolean appendOwnersToCreatable) -
SelectElementTypes
-
SelectElementTypes
public SelectElementTypes(@CheckForNull Collection display, @CheckForNull Collection select, @CheckForNull Stereotype stereotype) -
SelectElementTypes
public SelectElementTypes(@CheckForNull Collection display, @CheckForNull Collection select, @CheckForNull Collection create) Constructor. -
SelectElementTypes
public SelectElementTypes(@CheckForNull Collection display, @CheckForNull Collection select, @CheckForNull Collection create, boolean appendOwnersToCreatable) Constructor. -
SelectElementTypes
public SelectElementTypes(@CheckForNull Collection display, @CheckForNull Collection select, @CheckForNull Collection create, Collection restricted) Constructor.- Parameters:
display
-display
value.select
-select
value.create
-create
value.restricted
-restricted
value.
-
SelectElementTypes
public SelectElementTypes(@CheckForNull Collection display, @CheckForNull Collection select, @CheckForNull Collection create, Collection restricted, boolean appendOwnersToCreatable) Constructor.- Parameters:
display
-display
value.select
-select
value.create
-create
value.restricted
-restricted
value.appendOwnersToCreatable
- true if possible owners should be added into creatable metaclasses
-
-
Method Details
-
getSelect
-
getRestricted
-
create
An utility method to create an instance for given property.- Parameters:
property
- the given propertycreatable
- true if elements must be allowed to create- Returns:
- a new instance in case property is ElementProperty or Element ListProperty or null
- See Also:
-
create
@CheckForNull public static SelectElementTypes create(Property property, boolean creatable, boolean appendOwnersToCreatable) An utility method to create an instance for given property.- Parameters:
property
- the given propertycreatable
- true if elements must be allowed to createappendOwnersToCreatable
- true if possible owners should be added into creatable metaclasses- Returns:
- a new instance in case property is ElementProperty or Element ListProperty or null
- See Also:
-