Community
Participate
Working Groups
Diagrams do not appear in the explorer for a model produced by a Save as command. I made a copy of a model containing three diagrams using the Save As command in the Package Explorer. When I open the new model, I cannot see the diagrams in the ModelExplorer while I could see them in the initial model. One of the effects is the following: in the model explorer, the diagrams which were present in the initial model are no longer visible in the copy, however they are still present in the diagram views. Description Using the Papyrus perspective 1. I create a model Model using the Papyrus wizard selecting a class diagram then I create two other diagrams, a composite diagram and a sequence diagram. 2. I can see all of them in the Model explorer 3. I go in the Package Explorer (My model is active) 4. From the Tool bar I select File > SaveAs> ModelBis Three files are produced (.di,.notation,.uml) 4. When I open the .di file and I go in the Model explorer I cannot see the diagrams But in the diagram views I can still see them and navigate. Remark : Even when diagrams appear in the model explorer trying to select them produces an error (bug 318986).
I can not reproduce the bug for the version 0.8.0
Still reproducible in 0.9.0RC3, marked critical as this lead to diagram corruption. Can you or someone else try to fix this before RC4 ?
Created attachment 217253 [details] Model for saveAs tests
I have attached a model for testing, simple model 2 diagrams. Not always reproducible, on my last attempt, first saveAs succeed, the second one (one the initial version) failed.
Thank you Yann for you example. The problem seems appears with the closed Diagram during the copy. R8285 : I added an EcoreUtil.resolveAll before the SaveAs, and now it works fine with your example. Could you confirm that this bug disappears. I don't close the bug, because a JUnit test should be written to avoid regression.
the priority of the bug becomes normal because it remains to add test
Fixed.
fixed.