Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314566 - [copy/paste] paste does not copy stereotype applications
Summary: [copy/paste] paste does not copy stereotype applications
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 16:10 EDT by Ansgar Radermacher CLA
Modified: 2017-07-05 13:31 EDT (History)
1 user (show)

See Also:


Attachments
Add ability to copy stereotypes (21.19 KB, patch)
2010-07-13 03:36 EDT, Ansgar Radermacher CLA
rschnekenburger: iplog+
Details | Diff
Correction of earlier patch (2.38 KB, patch)
2010-07-15 08:22 EDT, Ansgar Radermacher CLA
rschnekenburger: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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