Skip to main content



      Home
Home » Eclipse Projects » GEF » Composite of EditParts II
Composite of EditParts II [message #184785] Thu, 16 June 2005 15:40 Go to next message
Eclipse UserFriend
Hi.

I'm still stuck trying to make an edipart inside another one. I tried
using the CompartmentEditPart but it doesn't work and I can't understand
why.
Is there anything I should do besides the usual to make this work? Is
there any other example of this besides the features in the EDiagram class?

Thanks.
Re: Composite of EditParts II [message #184825 is a reply to message #184785] Fri, 17 June 2005 18:20 Go to previous messageGo to next message
Eclipse UserFriend
Maybe this short description below can help to understand my problem.

I need to make two ediparts have their figures attached and act as one in
certain circumstances but keep their own policies as well.
My first idea was to use the CompartmentEditPart, used in the EDiagram
example, to attach the "edit area" to the "class area", but I have only
one edit area, not many, and I don't know how I could make it use the
CompartmentEditPart and the editpart I created for this edit area at same
time without using an EList, but making a list that will always have one
element doesn't seem right to me.
After my last e-mail about this, I made a little change in my model so
both parts could be treated as subparts of the element I want to make.
That way, each element would have a list with one or two subparts (some of
the elements doesn't have an edit area). It still doesn't seem good for
me, but I tried anyway. This time nothing worked and I'm out of ideas
already.

Here is a sketch of the element I'm trying to create:
http://img.photobucket.com/albums/v495/_sl0t_/image.gif

Thanks.
Re: Composite of EditParts II [message #184840 is a reply to message #184825] Sat, 18 June 2005 02:12 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------020502080900060403030500
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi F
Previous Topic:Associating a viewer with a NodeEditPart
Next Topic:animation question
Goto Forum:
  


Current Time: Thu Jun 05 23:01:30 EDT 2025

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

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

Back to the top