Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » broken .di file
broken .di file [message #933678] Fri, 05 October 2012 04:29 Go to next message
Vlad Gheorghe is currently offline Vlad Gheorghe
Messages: 111
Registered: May 2011
Senior 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 #933704 is a reply to message #933678] Fri, 05 October 2012 05:00 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille Letavernier
Messages: 444
Registered: February 2011
Senior Member
Hello,

Quote:
- Is there a "default" content for the .di file, given a related uml and notation files pair ?


No. An (almost) empty Di model is valid, but it doesn't allow you to open the existing diagrams. There's probably something to be fixed here.

Quote:
- Is there an automatic repair of the .di file feature ?


Not yet


Regards,
Camille


Camille Letavernier
Papyrus developer
Re: broken .di file [message #933736 is a reply to message #933704] Fri, 05 October 2012 05:42 Go to previous messageGo to next message
Vlad Gheorghe is currently offline Vlad Gheorghe
Messages: 111
Registered: May 2011
Senior 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

Re: broken .di file [message #933740 is a reply to message #933736] Fri, 05 October 2012 05:45 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille Letavernier
Messages: 444
Registered: February 2011
Senior Member
That's right.

Camille


Camille Letavernier
Papyrus developer
Re: broken .di file [message #933836 is a reply to message #933740] Fri, 05 October 2012 07:41 Go to previous message
Vlad Gheorghe is currently offline Vlad Gheorghe
Messages: 111
Registered: May 2011
Senior Member
Thanks !
Previous Topic:update from juno r to 0.9.1 - no network
Next Topic:Relationship of Editors to Resource Sets
Goto Forum:
  


Current Time: Tue Sep 02 10:12:24 EDT 2014

Powered by FUDForum. Page generated in 0.04070 seconds