This shows you the differences between two versions of the page.
modeling_2.0 [2024/12/12 15:42] montse [Edit diagram] |
modeling_2.0 [2025/06/19 11:58] (current) ale [Renaming variables in the diagram] |
||
---|---|---|---|
Line 69: | Line 69: | ||
- **Optional step:** The result of this step will not impact the test result.\\ | - **Optional step:** The result of this step will not impact the test result.\\ | ||
- **Comment out:** If this check is marked, the message will not be executed. | - **Comment out:** If this check is marked, the message will not be executed. | ||
- | - **Breakpoint:** The breakpoint check is used to stop the execution of the test in this step. It is helpfull during the creation of the diagram.\\ \\ | + | - **Breakpoint:** The breakpoint check is used to stop the execution of the test in this step. It is helpfull during the creation of the diagram.\\ \\ |
+ | |||
+ | ==== Renaming variables in the diagram ==== | ||
+ | |||
+ | This new functionality is accessed through a new context menu option with the right mouse button, by clicking on a certain element of the diagram. To do this, the diagram must be unlocked. This option appears by clicking on: a message, a gate or a fragment of the diagram. | ||
+ | \\ \\ {{ :en:edit_diagram:picture1renamingvariables.png?nolink&500 |}}\\ | ||
+ | If no variable is declared in the element on which this action is executed, then the following message will appear: | ||
+ | |||
+ | \\ \\ {{ :en:edit_diagram:picture2renamingvariables.png?nolink&500 |}}\\ | ||
+ | On the other hand, if there are variables declared in the element, the following modal dialog for renaming variables appears: | ||
+ | |||
+ | Renaming variables dialog. | ||
+ | \\ \\ {{ :en:edit_diagram:picture3renamingvariables.png?nolink&500 |}}\\ | ||
+ | In this modal there are different **items**:\\ | ||
+ | * **Variable list**: This combo shows the list with all the variables declared in the selected item. This list does not contain neither global variables nor repository variables. | ||
+ | * **“Variable name” field**: Not editable field. This shows the variable selected in the list. | ||
+ | * **New variable name**: Here we will enter the new name for the selected variable. | ||
+ | * **“Rename” button**: Once the new variable name has been entered in its field, pressing this button automatically replaces all occurrences of that variable in the diagram. Once the variables have been renamed in the diagram, a message will appear for information purposes indicating the number of elements in which the variable has been renamed. | ||
+ | |||
+ | \\ \\ {{ :en:edit_diagram:picture4renamingvariables.png?nolink&500 |}}\\ | ||
+ | * **Revert the changes**: After renaming a variable, if for some reason you want to revert the changes and leave the diagram in its previous state, just press the **“Undo”** option from the context menu, or use the **CTRL+Z** key combination. | ||
+ | |||
==== Guards ==== | ==== Guards ==== |