IBM
Contents Index Previous Next



Editing Rows in a Table


Rows can be added, deleted, copied, etc. in the bodies of all TTCN tables that contain more than one column. The ASN.1 tables only have a single column with a single row and therefore adding, deleting and copying rows is not applicable. However, you can still copy and paste the contents of these tables as text.

You cannot add or remove rows in table headers and footers, as the formats of these parts of a table are defined by the TTCN standard.

Selecting Rows in a Table

In the dynamic behaviour tables, you select a single row by clicking the row number.

You select a behaviour tree of rows by <Ctrl+Shift>-clicking.

You select rows in the body of a table by <Ctrl>-clicking. Selecting a row does not deselect other selected rows.

To deselect a row, you select it again.

Note:

Setting the input focus will also deselect all selected rows.

Cutting, Copying and Pasting Rows

Rows in a table may be cut, copied and pasted. This not only possible among tables of the same or similar type, but also across different types of tables.

Edit > Cut

Removes selected row or rows from the table and stores them in the clipboard.

Edit > Copy

Copies selected rows to the paste buffer. Any number of rows may be selected.

Note:

The paste buffer used for entire rows in the body of a table, is not the same as the one used for text.

Edit > Delete

Deletes the selected row or rows.

Caution!

The TTCN Suite has no undo so this command is irreversible.

Inserting Rows

Edit > Insert Row

Inserts a new row before a selected row. Only one row may be selected.

Edit > Insert Row After

Inserts a new row after a selected row. Only one row may be selected.

Edit > Insert Tree Header

Inserts a new Tree Header row before a selected row. Only one row may be selected. This command only works in dynamic behaviour tables.

Edit > Insert Tree Header After

Inserts a new Tree Header row after a selected row. Only one row may be selected. This command only works in dynamic behaviour tables.

The <Ins> Key

The <Ins> key (on the right-hand keypad) can be used for inserting rows. If you press this key while input focus is in the header or footer of a table, a new row is appended after the last row in the body of the table. If the input focus is set on a field in the body of the table, <Ins> will insert a new row after the field that has the input focus. The input focus will be transferred to the corresponding field in the new row.

Indenting Rows in Behaviour Descriptions

TTCN behaviour tables include a number of commands and shortcut keys that simplify indenting behaviour lines.

Caution!

Do not use the <Tab> character to represent indentation in behaviour trees.

Edit > Increase Indent

Increases the indentation of selected behaviour lines by one position. This command can only be used to indent behaviour lines.

Edit > Decrease Indent

Decreases the indentation (i.e. undent) of the selected rows by one position. This command can only be used on behaviour lines.

Selecting Branches in Behaviour Descriptions

TTCN behaviour tables include the following short-cut key that simplifies the task of selecting behaviour lines.

Showing the Indentation Level

Show > Show Indent

Causes the indentation level of behaviour lines to be displayed in the line number column of behaviour tables. Choosing this command again will cause the display to revert to line numbering.


http://www.ibm.com/rational
Contents Index Previous Next