Bug 510575 - [Tooling] Copy-paste of protocol message into same protocol causes duplicate names
Summary: [Tooling] Copy-paste of protocol message into same protocol causes duplicate ...
Status: NEW
Alias: None
Product: Papyrus-rt
Classification: Modeling
Component: tool (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-17 08:33 EST by Peter Cigehn CLA
Modified: 2017-01-20 08:35 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Cigehn CLA 2017-01-17 08:33:48 EST
If you copy and then paste a protocol message into the same protocol, then you get duplicated protocol message names with a name clash. Preferably the copy should get a new unique name, e.g. using the same name principle as when you other model elements into the same name space causing a name clash "CopyOf_<name>_X" where X is a unique suffix. Only if the you paste into a new name space, i.e. another protocol, then the original name should be kept as is.

Steps to reproduce:

1) Create a new UML-RT model
2) Create a new protocol in this model
3) Create a new protocol message in this protocol
4) Copy the protocol message using Ctrl+C
5) Select the same protocol and paste the protocol message using Ctrl+V
6) Observe how the protocol now have two identically named protocol messages