Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1f087e149d9cf4c3e7cc99a6238038f56da687c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Copying.2FCutting.2FPasting_in_Papyrus">Copying/Cutting/Pasting in Papyrus</h1><h2 id="Introduction">Introduction</h2><pre>Papyrus's policy is to ensure consistency between models and diagrams, so by default the cut/copy/paste functionalities act both on diagram and model elements.
The Copy/Cut/Paste functionalities are available between models and diagrams but not between eclipse instances.  
The Cut/Paste functionalities are disable on root and read only elements.
</pre><h2 id="User_Interface">User Interface</h2><h3 id="Model_Explorer_Menu">Model Explorer Menu</h3><p>Right click on a model explorer element</p><p><img border="0" src="images/ModelExplorerMenus.png"/></p><h3 id="Model_Explorer_KeyBinding">Model Explorer KeyBinding</h3><ul><li>Type M1+C for Papyrus copy</li><li>Type M1+X for Papyrus cut</li><li>Type M1+V for Papyrus paste</li></ul><pre>M1 is the COMMAND key on MacOS X, and the CTRL key on most other platforms.
M2 is the SHIFT key.
</pre><h3 id="Diagram_Menu">Diagram Menu</h3><p>On a Diagram element <b>Right Click&gt;EDIT</b> </p><p><img border="0" src="images/DiagramMenus.png"/></p><h3 id="Diagram_KeyBinding">Diagram KeyBinding</h3><ul><li>Type M1+C for Papyrus copy</li><li>Type M1+X for Papyrus cut</li><li>Type M1+V for Papyrus paste</li></ul><ul><li>Type M1+M2+C for Graphical copy</li><li>Type M1+M2+X for Graphical cut</li><li>Type M1+M2+V for Graphical paste</li></ul><h3 id="Preferences">Preferences</h3><pre>Papyrus copy/paste/cut preferences is accessible on <b>Window&gt;Preferences&gt;Papyrus&gt;Paste</b>
The preference page lists all the available strategies and the checkbox to select whether the references should be kept.
</pre><p><img border="0" src="images/PastePreferences.png"/></p><h2 id="List_of_Paste_strategies">List of Paste strategies</h2><h3 id="Common_Strategies">Common Strategies</h3><h4 id="Default_Paste_Strategy">Default Paste Strategy</h4><p>The strategy paste all copied elements in the selected place.
It is required for all other strategies.</p><h4 id="SterotypeStrategy">SterotypeStrategy</h4><p>The strategy reapply profiles and stereotypes on the newly copied elements.</p><h5 id="Preferences_2">Preferences</h5><ul><li>Always apply missing profiles: missing profiles will be applied to the root of the target model</li><li>Never apply missing profiles: stereotypes referencing missing profiles will not be paste</li></ul><p><img border="0" src="images/StereotypeStrategy.png"/></p><h4 id="Rename_Strategy">Rename Strategy</h4><ul><li>Only the duplications of the <b>roots elements</b> will be renamed</li><li>An element is renamed only if there is already an element with the <b>same name</b> on the paste selection</li><li>The element will be renamed in CopyOf_%NameOfTheElement%_%id%. The id will be incremented for each <i>same</i> copy/paste. Example: a Class1 will become CopyOf_Class1_1 then CopyOf_Class1_2…</li></ul><p><img border="0" src="images/RenameExample.png"/></p><h4 id="Diagram_in_model_Explorer_Strategy">Diagram in model Explorer Strategy</h4><p>The strategy allows copy/paste for diagrams in model explorer. </p><h4 id="Table_in_model_Explorer_Strategy">Table in model Explorer Strategy</h4><p>The strategy allows copy/paste for tables in model explorer. </p><h3 id="Uml_Strategies">Uml Strategies</h3><p>The following strategies will only apply on uml models</p><h4 id="Constraint_Paste_Strategy">Constraint Paste Strategy</h4><p>This strategy works only on uml class diagrams. It draws the constraint "context" link after a paste. </p><p><img border="0" src="images/ConstraintExample.png"/></p><h3 id="Sysml_Strategies">Sysml Strategies</h3><p>The following strategies will only apply on sysml models</p><h4 id="Part_Paste_Strategy">Part Paste Strategy</h4><p>This strategy duplicates the linked association for each property pasted. </p></body></html>

Back to the top