Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creating link without reference in the root element of domain model
Creating link without reference in the root element of domain model [message #211383] Mon, 17 November 2008 10:02 Go to next message
Eclipse UserFriend
Hi all!

I need to create a link without reference in the root element of domain
model. In this case link is the same element as others (but behaves as
connection). All other elements can have a list of references to this
link. Link has "to" property - name of target element. Generated xml must
look like:
<process>
<node name="name">
<transition to="page" name="next"></transition>
</node>
<node name="page">
</node>
</process>
How can I do this with GMF?
Re: Creating link without reference in the root element of domain model [message #211453 is a reply to message #211383] Tue, 18 November 2008 08:10 Go to previous message
Eclipse UserFriend
Hello Alexandr,

I suggest you to create "derived" property in transition element pointing
to the "to" node in EMF model. As a result transition will be just a simple
element-based link in terms of GMF and you can use any GMF examples as a
prototype of your diagram.

-----------------
Alex Shatalin
Previous Topic:Change source folder target
Next Topic:How do I add/remove tools on the palette dynamically?
Goto Forum:
  


Current Time: Sat May 31 09:32:03 EDT 2025

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

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

Back to the top