Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem with link
Problem with link [message #232973] Mon, 08 June 2009 14:35
Serena is currently offline SerenaFriend
Messages: 2
Registered: July 2009
Junior Member
Hello.

I use a XML Schema to generate the EMF model, and then generate a GMF
Editior.
I defined a Relation between tables in XML Schema like this:
<xsd:complexType name="Relation">
<xsd:sequence>
<xsd:element ecore:reference="Table" name="source" type="Table"/>
<xsd:element ecore:reference="Table" name="target" type="Table"/>
</xsd:sequence>
</xsd:complexType>

when I create a relation between "tablea" and "tableb"in Editor, the
persistence format like this:
<relation>
<source>tablea</source>
<target>tableb</target>
</relation>
I want to add some extra properties under <source> and <target>, it may
like this:
<relation>
<source>
<name>tablea</name>
</source>
<target>
<name>tableb</name>
<many>true</many>
</target>
</relation>

How do I do that?

Thanks
Serena
Previous Topic:compartment in gmf
Next Topic:Question about: BasicDecorationNodeImpl and persistedChildren feature
Goto Forum:
  


Current Time: Thu Mar 28 22:06:17 GMT 2024

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

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

Back to the top