Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:02 Go to next message
Alexandr Zaitsev is currently offline Alexandr ZaitsevFriend
Messages: 6
Registered: July 2009
Junior Member
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 13:10 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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: Thu Apr 25 05:50:16 GMT 2024

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

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

Back to the top