Bug 582384 - [Diagram][Copy/Paste] Copy a Diagram doesn't work properly
Summary: [Diagram][Copy/Paste] Copy a Diagram doesn't work properly
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.5.0   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: 6.6.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-07 09:57 EDT by Vincent Lorenzo CLA
Modified: 2023-09-07 09:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2023-09-07 09:57:31 EDT
The copy/paste of Diagram doesn't work.
Several point must be fixed: 
1. Copy of a diagram showing some UML Element from the ModelExplorer
2. Copy a Package containing a Diagram showing from the ModelExplorer

-> The views of the diagram must be duplicated. These views must be linked to the correct UML Elements.
-> The JUnit tests must also be provided
-> We also should explore the copy of Table and XTextEditor

Steps to reproduce. Create a Papyrus Project with a model like this:
- Model
  - Package1
    - Class1
        Operation1
    - Class2
    - Class3
    - A ClassDiagram with Class1,Operation1, Class2 and Class3 represented in the diagram
  - Package2

1. Try to copy the ClassDiagram in Package1
	-> a new ClassDiagram is created with views, but these views are broken (see seems not linked to the UML Model)
2. Try to copy the ClassDiagram in Model or in Package2 -> check the result
3. Copy Package1
	-> a new Package is created, in which each Class is also copied with its contents. The diagram is also duplicated, but its views seem not linked to the UML Model.
4. We also should try the same usecases, with stereotypes applications