Bug 295554 - [Use Case diagram] Problem when you try to add a new Use Case diagram
Summary: [Use Case diagram] Problem when you try to add a new Use Case diagram
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: M3   Edit
Assignee: Emilien Perico CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2009-11-19 03:15 EST by Emilien Perico CLA
Modified: 2009-11-19 11:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emilien Perico CLA 2009-11-19 03:15:58 EST
If you try to add a use case diagram into an existing model, an error occurs (Diagram is not present in resource) and the diagram is not added. For now it's impossible to create additional use case diagram
Comment 1 Emilien Perico CLA 2009-11-19 11:50:53 EST
Problem fixed.
I made some refactor to avoid duplicated code in classes Uml*DiagramForMultiEditor.
Some of the behavior is now done in super class UMLDiagramEditor.

When you will generate again your diagram, you will need to update your code as follow:

- change the constructor with super(servicesRegistry, diagram);
- delete diagram attribute, the getter and setter
- delete getDocumentProvider and  setDocumentProvider
- delete initializeGraphicalViewer, getGraphicalViewer
- delete selectionChanged if no custom behavior is needed