Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Why does my link disappear?
Why does my link disappear? [message #223923] Wed, 01 April 2009 11:53 Go to next message
Eclipse UserFriend
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 12:07 Go to previous messageGo to next message
Eclipse UserFriend
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 07:01 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 21:32:20 EDT 2025

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

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

Back to the top