![]() |
![]() |
![]() |
![]() |
![]() |
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.
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.
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.
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.
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.
- Keypad <+>
Pressing <+> (Plus) on the right-hand keypad (the normal <+> key does not have this effect) will indent the field that currently has the input focus.- <Ctrl> + Keypad <+>
Pressing <Ctrl> together with the keypad <+> key will cause selected behaviour lines to be indented one position, i.e. it has the same effect as the Increase Indent command.- <Shift> + Keypad <+>
Pressing <Shift> together with the keypad <+> key will cause an entire branch in the behaviour tree to be indented one position.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.
- Keypad <->
Pressing <-> (Minus) on the right-hand keypad (the normal <-> key does not have this effect) will undent the field that currently has the input focus.- <Ctrl> + Keypad <->
Pressing <Ctrl> together with the keypad <-> key will cause selected behaviour lines to be undented one position, i.e. it has the same effect as the Decrease Indent command.- <Shift> + Keypad <->
Pressing <Shift> together with the keypad <-> key will cause an entire branch in the behaviour tree to be undented one position.Selecting Branches in Behaviour Descriptions
TTCN behaviour tables include the following short-cut key that simplifies the task of selecting behaviour lines.
- <Shift+Ctrl> + Left Mouse Button
Pressing <Shift+Ctrl> together with the left mouse button while the cursor is pointing to a behaviour line, will select that behaviour line and all the subsequent behaviour lines that are in the same branch of the behaviour tree.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 |
![]() |
![]() |
![]() |
![]() |