Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Why does my link disappear?
Why does my link disappear? [message #223923] Wed, 01 April 2009 15:53 Go to next message
Peter Lang is currently offline Peter LangFriend
Messages: 153
Registered: July 2009
Senior Member
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 #223931 is a reply to message #223923] Wed, 01 April 2009 16:07 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Peter,

Can you open this file using EMF-generated editor? Can you see correct link
there?

-----------------
Alex Shatalin
Re: Why does my link disappear? [message #224077 is a reply to message #223931] Thu, 02 April 2009 11:01 Go to previous message
Peter Lang is currently offline Peter LangFriend
Messages: 153
Registered: July 2009
Senior Member
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?
Previous Topic:Graphic representation of an element with regard to the value of its attribute
Next Topic:Hide/unhide of edges and nodes: visiibility
Goto Forum:
  


Current Time: Tue Apr 23 12:00:38 GMT 2024

Powered by FUDForum. Page generated in 0.03063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top