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

Bug 295554

Summary: [Use Case diagram] Problem when you try to add a new Use Case diagram
Product: [Modeling] Papyrus Reporter: Emilien Perico <emilien.perico>
Component: CoreAssignee: Emilien Perico <emilien.perico>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 Keywords: plan
Version: 0.7.0   
Target Milestone: M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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