Editing Elements
Editing Elements
Create Element
You have following options to create Model Elements and View Elements.
To create an Element from Toolbox:
Select [ElementType] in Toolbox.
Drag on the diagram as the size of element, or link two elements if the element is a kind of relationship.
Note
In most cases, creating an element from Toolbox means creating the both Model Element and View Element. For example, if you create a Class in a Diagram from Toolbox, a Class Model Element and a Class View Model which referencing the Model Element will be created. See Basic Concepts
If you have already Model Elements, you can create View Elements referencing the Model Element on a Diagram.
To create a View Element by drag and drop:
Select a Model Element in Explorer.
Drag the Model Element and drop on a Diagram.
To create a Model Element in Explorer:
Select first an element where a new Model Element to be contained as a child in Explorer.
Select Model | Add | [ElementType] in Menu Bar or select Add | [ElementType]` in Context Menu.
Delete Elements
See also
Basic Concepts - Before deleting elements, you need to distinguish the difference of Model Element, View Element, and Diagram.
To delete View Elements in a Diagram.
Select View Elements to be deleted in a Diagram.
Press
Delete
or Select Edit | Delete in Menu Bar or Delete in Context Menu.
Note
Deleting View Elements do not delete Model Elements.
To delete Model Elements:
Select Elements to be deleted in a Diagram or in Explorer.
Press
Ctrl+Delete
or Select Edit | Delete from Model in Menu Bar or Delete from Model in Context Menu.
Note
Model Elements are always deleted with corresponding View Elements.
Select Elements
To select view elements in Diagram Editor:
You can select an Element in Diagram just by clicking on an Element. If you want to select additional elements while keeping current selections, click on element with pressing Shift
. When you drag an area, Elements overlaps the area will be selected. Pressing Shift
also work with dragging.
If you want to select all elements in the Diagram, press Ctrl+A
or select Edit | Select All in Menu Bar or Select All in Context Menu.
Note
Selecing an Element on a Diagram means selection of the both Model Element and View Element.
To select a model element in Explorer:
In Explorer, you can select a Model Element by clicking on an Element.
If you want to select an element in Explorer corresponding to the a selected element in Diagram, press Ctrl+E
or select Edit | Select In Explorer in Menu Bar or Select In Explorer in Context Menu.
Copy and Paste
When copying or cutting elements for pasting, a clear distinction has to be made between model elements and view elements. If a model element is copied, it has to be pasted under a model element. In this case, all the sub-elements contained in the selected element are copied together. View elements can be copied within the same diagram or to different diagrams. Copied view elements can be pasted in diagrams only; they cannot be pasted to model elements. Copying and pasting may also be restricted depending on the view element types and diagram types.
To copy and paste view elements in Diagram Editor
Select view elements in a diagram to copy. (You can select multiple elements. See Select Elements)
Press
Ctrl+C
or select Edit | Copy in Menu Bar or Copy in Context Menu. (To cut view elements, pressCtrl+X
or select Edit | Cut in Menu Bar or Cut in Context Menu)Open the diagram where the copied view elements to be pasted. (See open diagram??)
Press
Ctrl+V
or select Edit | Paste in Menu Bar or Paste in Context Menu. The copied view elements will be pasted to the active diagram.
To copy and paste a model element in Explorer:
Select a model element to copy in Explorer.
Press
Ctrl+C
or select Edit | Copy in Menu Bar or Copy in Context Menu. (To cut view elements, pressCtrl+X
or select Edit | Cut in Menu Bar or Cut in Context Menu)Select a model element where the copied element will be pasted in Explorer.
Press
Ctrl+V
or select Edit | Paste in Menu Bar or Paste in Context Menu. The copied view elements will be pasted to the active diagram. The copied model element can be pasted in where an element is able to contain.
Note
Some elements are not allowed to copy, cut, and paste.
Undo and Redo
To undo an action, press Ctrl+Z
or select Edit | Undo in Menu Bar.
To redo an undo-ed action, press Ctrl+Y
or select Edit | Redo in Menu Bar.
Edit Properties
You can edit properties of model elements in Property Editor.
Documenting Elements
You can edit documentation of model elements in Documentation Editor.
Extending Elements
Assign Stereotype
To assign defined stereotype to elements (e.g. defined in UML Standard Profile):
Select model elements to assign stereotype.
Click the magnifier icon on the right side of
stereotype
property in Property Editor.Select a stereotype in Element Picker Dialog.
To assign temporal stereotype to elements:
Select model elements to assign stereotype.
Enter stereotype name in
stereotype
property in Property Editor.
Add Constraints
To add a Constraint to an element:
Select model elements to add a constraint.
Select Model | Add | Constraint in Menu Bar or select Add | Constraint in Context Menu.
Edit constraint in
specification
property in Property Editor.
Add Tags
Tag is an element to add extended properties to Model Elements
To add a Tag to an element:
Select an Element in Explorer or in a Diagram.
Select Model | Add | Tag in Menu Bar or select Add | Tag in Context Menu.
Properties of Tag:
name
: Name of Tagkind
: Kind of Tag.kind
could be one ofstring
,reference
,boolean
,number
, orhidden
. ifhidden
is chosen, this Tag will not be shown on View Element.value
: Value of Tag whenkind
isstring
.reference
: Reference value of Tag whenkind
isreference
.checked
: Boolean value of Tag whenkind
isboolean
.number
: Number value of Tag whenkind
isnumber
.
To show or hide Tags on View Elements, see Show Property.
Finding Model Elements
To find model elements by keyword:
Press
Ctrl+F
or Select Model | Find... in Menu Bar.Enter keyword in Edit Box.
Check Case sensitive if you want to find keyword case sensitively, and check Find in documentation if you want to find keyword in documentation of elements.
Matched elements will be shown on a Bottom Panel.
Last updated