This shows you the differences between two versions of the page.
copiar_y_pegar_mensajes_entre_diagramas [2019/11/14 13:51] montse created |
copiar_y_pegar_mensajes_entre_diagramas [2023/10/23 14:49] (current) montse |
||
---|---|---|---|
Line 1: | Line 1: | ||
======Copy/Paste Messages Between Diagrams====== | ======Copy/Paste Messages Between Diagrams====== | ||
+ | =====Copy & paste of Canvas objects===== | ||
- | **How many messages can we copy and paste?**\\ \\ | + | ====Copy objects==== |
- | The user cannot copy multiple messages between diagrams, just one message can be copied at a time. If the user tries to copy more than one message at once, a window will appear showing the following sentence: “You cannot copy/paste multiple messages between diagrams”.\\ \\ | + | By selecting one or more items on the canvas, these can be copied using the **CTRL+C** key combination, or by using the **Copy** option from the contextual menu. There is no restriction as to the type or number of objects to copy at a time.\\ \\ |
- | If the user tries to paste a message but there is no message copied the sentence “There is no message to paste” will be shown.\\ \\ | + | |
- | **What happen with the messages type right that has an associated response?**\\ | + | |
- | In this case, if we copy the one-way message, the Reply message is also copied and pasted automatically and if the Reply message is copied, the one-way message is also automatically copied and pasted, as is already happening by copying and pasting into the same diagram. | + | ====Paste Objects==== |
+ | Having previously copied one or more objects, they can be pasted using the **CTRL+V** key combination or using the **Paste** option from the contextual menu. Normally the objects are pasted after the copied object(s).\\ \\ | ||
- | **Where the new messages are pasted?**\\ | + | ====Paste of objects in the desired position “Paste Here”==== |
+ | Having previously copied one or more objects, they can be pasted in a determined position of the diagram, using the **CTRL+SHIFT+V** key combination, or using the **Paste Here** option from the contextual menu. As we saw in the previous point, when selecting this option a special cursor appears, {{:en:paste_here.png?direct&30|}} and so when we press “click” the copied objects will be pasted in that position.\\ \\ | ||
- | They will always be pasted between the same type of adapter as the original message. They will always be pasted in the order of the last step in the diagram.\\ | + | ====Paste of objects in a diferent diagram==== |
+ | An object or objects that have previously been copied from another diagram can be pasted into a diagram. To do this, you must have both diagrams open, each one in a different window, always using the same browser. The diagram on which we are going to copy does not need to be unlocked, but the diagram on which we are going to paste does need to be unlocked.\\ \\ The restriction on pasting objects between different diagrams will depend on the characteristics of the source diagram and the destination diagram.\\ // For example: if we copy a gate that is in adapter X, an adapter X must also exist in the other diagram, otherwise that gate cannot be copied. Or if we copy a message going from adapter A to adapter B, in the other diagram there must be at least one adapter A and one adapter B for the message to be copied//.\\ \\ If there is more than one adapter as a possible recipient of a copied message or gate, then the one on the far left of the diagram must always be the one used.\\ \\ The pasting of objects type; fragment/subtestcase/adapter do not have such restrictions.\\ \\ In the event that all the objects that were copied from the source diagram could not be pasted into the destination diagram (for the reason we have just explained), a message will appear telling us the number of objects that have actually been pasted.\\ \\ If we paste the objects using the normal (**Paste**), the copied objects will be pasted at the end of the diagram.\\ \\ If we paste the objects using (**Paste Here**), then the copied objects will be pasted in the position chosen by the user.\\ \\ | ||
- | **What happens if there is more than one compatible object among which we can paste a message?**\\ \\ | ||
- | If there is more than one compatible object where we can paste the new message, a modal window appears showing a list of compatible FROM and / or TO objects, we just have to choose the one that interests us. There are several cases of this type:\\ \\ | ||
- | * There is only one FROM: object and a TO object: In this case the message is pasted directly without asking us. | ||
- | * There are several possibilities to paste the new message: Objects are divided into two groups: FROM and TO. Each group is presented in a list with radio buttons, so that the user chooses the object he wants. There can be several FROM and / or several TO. The form is dynamic, so it will only allow you to select things that make sense. The list of FROM objects does not vary, all the objects that can be a FROM object for that message are presented, but the list of TO objects if it is different depending on whether a FROM or another object is selected, only compatible objects to which you have range from that FROM object. The above cases apply to messages of type Right and Reply, which have a different FROM and TO object. For Self-type messages which share FROM / TO object, this other case is presented:\\ \\ | ||
- | * In the case of Self-type messages. If there is more than one compatible object, a list of all of them is displayed for you to choose the one you want. But without separating them since the object FROM and TO will be the same. | ||