Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314566

Summary: [copy/paste] paste does not copy stereotype applications
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: yann.tanguy
Version: unspecified   
Target Milestone: 0.8.0   
Hardware: PC   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=500616
Whiteboard:
Attachments:
Description Flags
Add ability to copy stereotypes
rschnekenburger: iplog+
Correction of earlier patch rschnekenburger: iplog+

Description Ansgar Radermacher CLA 2010-05-26 16:10:44 EDT
Build Identifier: Build id: 20100506-2000

If a model element with stereotype applications is copied via the copy/paste mechanism, the stereotype applications are not copied.

Should perhaps have two variants which make/do not make a stereotype copy (a bit similar to the standard copy & "copy without format" options in text processors).


Reproducible: Always
Comment 1 Ansgar Radermacher CLA 2010-07-13 03:36:50 EDT
Created attachment 174119 [details]
Add ability to copy stereotypes

This patch makes the following modifications
- Adds class with functions to copy stereotypes to umlutils
- Add a custom copy action and a command to the model explorer that takes stereotypes into account.
- Add a custom paste action to the model explorer that pastes either a shape (the model element referenced by the shape) or a model element. This modification does not fix the stereotype copy issue, but corrects case 3 of bug 319662.
- Modifies the Paste within diagrams
Comment 2 Ansgar Radermacher CLA 2010-07-15 08:22:36 EDT
Created attachment 174390 [details]
Correction of earlier patch

I just realized that the earlier patch can cause null-pointer exceptions in class PasteShapeOrElement.
Comment 3 Sébastien Gérard CLA 2013-04-15 11:46:33 EDT
no more valid in 0.10.0