Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » parent-child relation in GMF
parent-child relation in GMF [message #245068] Thu, 21 August 2008 10:51 Go to next message
Anjali is currently offline AnjaliFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,
I am using eclipse3.3 and gef. In My Pallete I've 3 figures rectangle,
ellipse , polygon now there is two cases
case 1
when I drag and drop rectangle from pallete and on rectangle I should be
able to drag and drop as well as move and resize ellipse and polygon
figure on to rectangle,it means in this case rectangle is parent and
ellipse and polygon is child of rectangle.
case 2
when I drag and drop ellipse then I should be able to drag and drop as
well as move and resize polygon and rectangle on ellipse figure, it means
in this case ellipse is parent and rectangle and polygon is child of
ellipse .

Please let me know how I can achieve this .

Thanks
Anjali
Re: parent-child relation in GMF [message #245103 is a reply to message #245068] Fri, 22 August 2008 04:11 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Anjali,

If I'd understood your requirements correctly and comparing with
the Shapes example:

(*) The ShapesDiagram is a parent and can hold Shapes as its children.
For your case, Shape also needs to be a parent, so that it can hold
other shapes.

(*) CreateCommand should be able to work with both Shape and
ShapeDiagram as parent entities

- Prakash

www.eclipse-tips.com


Anjali Mishra wrote:
> Hi,
> I am using eclipse3.3 and gef. In My Pallete I've 3 figures rectangle,
> ellipse , polygon now there is two cases
> case 1
> when I drag and drop rectangle from pallete and on rectangle I should be
> able to drag and drop as well as move and resize ellipse and polygon
> figure on to rectangle,it means in this case rectangle is parent and
> ellipse and polygon is child of rectangle. case 2
> when I drag and drop ellipse then I should be able to drag and drop as
> well as move and resize polygon and rectangle on ellipse figure, it
> means in this case ellipse is parent and rectangle and polygon is child
> of ellipse .
>
> Please let me know how I can achieve this .
> Thanks
> Anjali
>
Previous Topic:Big figure problem on linux platorm
Next Topic:Problem in positioning label on connection
Goto Forum:
  


Current Time: Thu Mar 28 09:07:29 GMT 2024

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

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

Back to the top