Why does my link disappear? [message #223923] |
Wed, 01 April 2009 11:53  |
Eclipse User |
|
|
|
I've defined a node State and a link StateLink in my xsd:
<xsd:complexType name="State">
<xsd:attribute name="name" type="xsd:ID" />
</xsd:complexType>
<xsd:complexType name="StateLink">
<xsd:attribute name="name" type="xsd:ID" use="required" />
<xsd:attribute name="fromState" type="xsd:IDREF"
ecore:reference="sc:State" />
<xsd:attribute name="toState" type="xsd:IDREF"
ecore:reference="sc:State" />
</xsd:complexType>
I can draw my states and my links, they are displayed and the XML is
correct.
<state name="State 1" task="Task 1"/>
<state name="State 2" task="Task 2"/>
<stateLink fromState="State 1" name="Test" toState="State 2"/>
When I reopen the diagram, the links are not displayed any more and when I
save the file again, my links have no fromState and toState attributes any
more:
<stateLink name="Test"/>
What am I doing wrong?
Thanks,
Peter
|
|
|
|
Re: Why does my link disappear? [message #224077 is a reply to message #223931] |
Thu, 02 April 2009 07:01  |
Eclipse User |
|
|
|
Thank you, Alex!
It seems to work now, but I don't really know why...
It did work in EMF-Editor before, but GMF did not seem to understand the
Links correct after reopening.
Even though it works now, can anyone tell if my previously posted
configuration is ok?
|
|
|
Powered by
FUDForum. Page generated in 0.09303 seconds