Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Node recursion
Node recursion [message #203158] Fri, 22 August 2008 14:53 Go to next message
exquisitus is currently offline exquisitusFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I'm using GMF 2.0 with Eclipse 3.3.

My meta-model has a recursion like this :

Site
- subSites : Site

The root of my diagram is a Site and I have defined top nodes for subsites.
So, GMF has generated SiteEditPart (for DiagramEditPart) and Site2EditPart
(for NodeEditPart).
So, normally, I can only create Site in SiteEditPart with palette tool
since I don't know how I could define a GMFMap to achieve this.

My problem :

With drag'n drop, I can create Site in SiteEditPart with palette tool
and
then drag 'n drop in Site2EditPart compartment.

So, since I don't understand how I could define a GMFMap to achieve this,
how could I desactive the drag'n drop ?

Best regards,
Sylvain
Re: Node recursion [message #203255 is a reply to message #203158] Mon, 25 August 2008 09:26 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sylvain,

> So, since I don't understand how I could define a GMFMap to achieve
> this, how could I desactive the drag'n drop ?
I can explain you how to sefine mapping for sub-sub-sites. For it you have
to create ChildReference below SubSite node mapping and specify SubSite node
mapping as a referenced child for this ChildReference.

-----------------
Alex Shatalin
Previous Topic:Reference based links
Next Topic:2 top nodes with the same element type
Goto Forum:
  


Current Time: Thu Apr 25 07:26:30 GMT 2024

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

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

Back to the top