• No results found

The Element Menu

The Visual Style Sub-Menu Presents options to:

6.6 The Element Menu

You can configure and access element details using the Element menu. This enables you to control element layout, generate documentation and manage project resources.

For further information on the facilities available through these menu options, see UML Modeling with

Enterprise Architect – UML Modeling Tool.

Menu Option & Function Keys Use to

Properties [Alt]+[Enter] View the Properties dialog of the selected element. Add Tagged Value [Ctrl]

+[Shift]+[T]

Add a Tagged Value to the currently selected element.

Linked Document [Ctrl]+[Alt] +[D]

Link the element to a rich text document.

Attributes [F9] View and edit the attributes for the selected element.

Operations [F10] View and edit the operations (methods) for the selected element. Inline Features See the element Inline Features Submenu .

Feature Visibility [Ctrl]+[Shift] +[Y]

Select which features and characteristics of the selected element are visible on a diagram.

Advanced See the element Advanced Submenu .

Rich Text Format (RTF) Report Generate a report for the currently selected package in rich text format. (See Report Creation in UML Models.)

Source Code Engineering See the element Source Code Engineering Submenu . Open Source in External

Editor [F12]

Open the source code of the selected Class in the default external editor for that language. (Source code must have been generated, and the selected element must be a Class - see Code Engineering Using UML

Models.)

Find in Project Browser [Alt] +[G]

Find the currently selected element in the Project Browser window. (If no

element is selected, finds the current diagram in the Project Browser

window.)

Find in Diagrams [Ctrl]+[U] Display all occurrences of the currently selected element. Custom References [Ctrl]+[J] Show model element cross references.

Appearance See the element Appearance Submenu .

Alignment

See the element Position Submenus .

Make Same Z Order Size Move Space Evenly 52 52 53 53 53

The Main Menu | The Element Menu 52

6.6.1 Inline Features Submenu

The Inline Features sub-menu provides various options to directly edit Class diagram model elements from the Class diagram. Select the Element | Inline Features menu option to access this submenu.

Menu Option & Function Keys

Use to

Edit Selected [F2] Attach a note or attach a constraint to the element.

View Properties Open the dialog containing details of the selected element feature, or the element if no feature is selected.

Insert New After Selected Insert a new item in the element.

Create Linked Note Add a Note element linked to the selected item, reflecting the content of that item.

Add Attribute [Ctrl]+[Shift] +[F9]

Add an attribute to the element. (See UML Modeling with Enterprise

Architect – UML Modeling Tool.)

Add Operation [Ctrl]+[Shift] +[F10]

Add an operation to the element. (See UML Modeling with Enterprise

Architect – UML Modeling Tool.)

Add Other [Ctrl]+[F11] Insert a feature on the specific element item, such as Maintenance features and Testing features.

Delete Selected from Model [Ctrl]+[Shift]+[Delete]

Delete the selected item from the model.

Other options that are available while in editing elements mode in a diagram (when an attribute or operation is highlighted) include:

Key Use to

[Enter] Accept current changes.

[Ctrl]+[Enter] Accept current changes and open a new slot to add a new item.

[Esc] Abort edit, without save.

[Shift]+[F10] Display the context menu for in-place editing. [Ctrl]+[L] Invoke the Set ElementClassifier dialog.

6.6.2 Advanced Submenu

The Advanced sub-menu provides various options to choose from to customize the appearance of model elements. Select the Element | Advanced menu option to display this submenu.

For further information on the facilities available through these menu options, see UML Modeling with

Enterprise Architect – UML Modeling Tool.

Menu Option & Function Keys Use to Overrides & Implementations

[Ctrl]+[Shift]+[O]

Automatically override methods from parent Classes and from realized interfaces.

Set Parents and Interfaces [Ctrl] +[I]

Manually set the element's parents or an interface that it realizes.

Embedded Elements [Ctrl] +[Shift]+[B]

Attach elements to the currently selected element.

6.6.3 Source Code Engineering Submenu

To forward and reverse engineer code using the language of your choice, select the Element | Source Code Engineering menu option.

Menu Option & Function Keys Use to

Generate Current Element [F11] Generate source code for the currently selected element. (See Code

Engineering Using UML Models.)

Synchronize Current Element [F7]

Synchronize the selected Class with the source code.

Batch Generate Selected Element(s)

[Shift]+[F11]

Batch generate source code for the currently selected element(s).

Batch Synchronize Selected Element(s)

[Ctrl]+[R]

Batch synchronize the currently selected element(s) with source code.

Open Source Directory [Ctrl]+[Alt]+[Y]

Open the directory containing the source for this element.

6.6.4 Appearance Submenu

The Appearance sub-menu provides various options to choose from to customize the appearance of model elements.

For further information on the facilities available through these menu options, see UML Modeling with

Enterprise Architect – UML Modeling Tool.

Menu Option & Function Keys

Use to

Autosize [Alt]+[Z] Auto-size a group of elements in a diagram to a best fit. Default Appearance

[Ctrl]+[Shift]+[E]

Set border, font and background color and border thickness for the selected element, as its default appearance.

Alternate Image [Ctrl]+[Shift]+[W]

Select an alternative image for the selected element.

Apply Image From Clipboard

Insert the image currently held on the clipboard.

Set Font Change the font of the text displayed on the element in a diagram.

6.6.5 Position Submenus

These Element menu submenus enable you to size and position elements on the diagram, relative to each other.