In-place Editing Tasks

How To:

To use the in-place editing menu options, follow the steps below:

Images

Step

Action

See Also

 

1

Open the diagram containing the element

 

SelectedElementEdit

2

Click on the element, and on the item to manipulate within the element

The item line is highlighted in a lighter shade (the default is white), to indicate that it has been selected

 

 

3

Edit and manipulate the items in the element, either by pressing the appropriate keyboard keys or by right-clicking on the highlighted item and choosing a task from the Element Items context menu

The available commands are listed in the table below

 

Reference:

Menu option...

Usage

Shortcut

See also

Edit Selected

Change the name, scope or stereotype of the element or element item

F2

 

View Properties

Display the dialog containing details of the element

Enter

 

Insert New After Selected

Insert a new item in the element

Insert

 

Find in Project Browser

Locate the item in the Project Browser

 

 

Add Attribute

Add an attribute to the element

Ctrl + Shift + F9

 

Add Operation

Add an operation to the element

Ctrl + Shift + F10

 

Add Other

Insert a feature on the specific element item, such as Maintenance features and Testing features

Ctrl + F11

 

Delete Selected from Model

Delete the selected item from the model

Delete

 

View Source code

Display the source code for the element, in the default external editor

F12

The Source Code Viewer

Set Breakpoint

Set a breakpoint on a highlighted operation (including a breakpoint, start recording marker, end recording marker or stack auto-capture marker)

 

Breakpoint and Marker Management

Marker types

 

Navigate Diagram Selection, to navigate the diagram between elements without having to use the mouse

Ctrl + Shift + arrow key

 

 

Toggle element highlight option on and off

Shift + Enter

 

 

Other options that are available while editing element attributes or operations in a diagram include:

Menu options

Usage

Shortcut

See also

 

Accept current changes

Enter

 

 

Accept current changes and open a new slot to add a new item

Ctrl + Enter

 

 

Abort the edit, without save

Esc

 

 

Move the cursor between segments of a feature definition

Tab or Shift + Tab

 

 

Display the context menu for in-place editing

Shift + F10

 

 

Invoke the Select <Item> dialog

Ctrl + Shift + Space

Select <Item> Dialog

 

Display an autocompletion list for a feature classifier

Ctrl + Space

 

Notes:

  • Most of the in-place editing menu commands have keyboard alternatives; for many of them, if the selected item happens to be off-screen when you press the appropriate keys, the diagram automatically scrolls to show the whole element, so that you can see what you are changing