| broken .di file [message #933678] |
Fri, 05 October 2012 04:29  |
Vlad Gheorghe Messages: 72 Registered: May 2011 |
Member |
|
|
Hello,
Using Papyrus 0.9.0 I've run into a situation when the model didn't open anymore.
After some analysis using "sample ecore editor" to load all the model files and running validation, it turns out that only the .di file is broken, while the .uml and .notation files are valid.
My work-around to repair the .di file was to overwrite it with something like:
<?xml version="1.0" encoding="ASCII"?>
<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi">
<pageList>
<availablePage>
<emfPageIdentifier href="model.notation#_1rtvgAleEeKk1_-gt_aoIA"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="model.notation#_FytBMAlfEeKk1_-gt_aoIA"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="model.notation#_a2GwQAlkEeKk1_-gt_aoIA"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="model.notation#_rChf4AumEeKrv4P5cGyplg"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="model.notation#_853ecAuyEeKrv4P5cGyplg"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="model.notation#_wEjjcAuzEeKrv4P5cGyplg"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder"/>
</windows>
</sashModel>
</di:SashWindowsMngr>
And now it seems to work.
Questions:
- Is there a "default" content for the .di file, given a related uml and notation files pair ?
- Is there an automatic repair of the .di file feature ?
Regards,
Vlad Gheorghe
|
|
|
|
| Re: broken .di file [message #933736 is a reply to message #933704] |
Fri, 05 October 2012 05:42   |
Vlad Gheorghe Messages: 72 Registered: May 2011 |
Member |
|
|
So just to make it sure - if I have two consistent .notation and .uml files and I write the .di file as in the initial post, where there is one <availablePage> element referencing each diagram in the .notation file, I should get a perfectly working Papyrus model.
Right ?
Regards,
Vlad
[Updated on: Fri, 05 October 2012 05:44] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01560 seconds