Community
Participate
Working Groups
Build Identifier: Build id: 20100506-2000 When the Papyrus wizard for the creation of an .di/.notation from an existing .uml file is used, the latter is re-created as an empty model, i.e. the contents of the existing .uml file is lost! Reproducible: Always Steps to Reproduce: 1. Select an existing uml file (e.g. made with Papyrus 1.x) 2. Choose "New Papyrus Model" wizard => "Create a new Papyrus model from an existing semantic model" 3. Next leads to option "Create new model" vs "initialize from template" This option should not appear in case of re-creation from existing model (maybe careful users would cancel at this point). 4. Terminate the wizard => Existing model is emptied
Created attachment 170658 [details] Initial patch
(In reply to comment #1) > Created an attachment (id=170658) [details] > Initial patch This bug was caused bug 315083 'ModelSet: Allow to create .di and .notation models only, and do not create a domain model'. The ModelSet creates new resources for all three models (.di, .notation and .uml). It means, that the existing UML resource is overriden with the newly created one. This patch solves the problem - it is possible to create a new Papyrus Model from the existing UML model and the existing model won't be modified. But! It has workaraund for bug 315083. As soon as bug 315083 is fixed the workaround code should be deleted.
Remi, could you commit the patch =)
(In reply to comment #3) > Remi, could you commit the patch =) Applied in r1756. Thanks, Tatiana!
Fixed
It is no longer possible to create a new .di from an existing .uml file. This is a very important feature, as long as no conversion from Papyrus 1.x to MDT exists.
(In reply to comment #6) > It is no longer possible to create a new .di from an existing .uml file. This > is a very important feature, as long as no conversion from Papyrus 1.x to MDT > exists. Fixed. I double-checked it in the todays build - works fine