Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Making Editparts create their own child Editparts
Making Editparts create their own child Editparts [message #174761] Thu, 31 March 2005 22:05 Go to next message
Eclipse UserFriend
Originally posted by: Angel.Roman.prismtech.com

Hi Everyone,

I would like to create an EditPart who's figure is a free form layer
which contain other editpart figures (RectangleFigures). What are some
methods to make an edit part create it's own child edit parts. Should I
override performRequest() and use a custom request so that the editpart
would add child editparts to itself?

Regards,
Angel Roman
Re: Making Editparts create their own child Editparts [message #174907 is a reply to message #174761] Fri, 01 April 2005 14:43 Go to previous message
Eclipse UserFriend
Originally posted by: Angel.Roman.prismtech.com

Angel Roman wrote:
> Hi Everyone,
>
> I would like to create an EditPart who's figure is a free form layer
> which contain other editpart figures (RectangleFigures). What are some
> methods to make an edit part create it's own child edit parts. Should I
> override performRequest() and use a custom request so that the editpart
> would add child editparts to itself?
>
> Regards,
> Angel Roman

I failed to realize that the framework obtains the children (models)
from my editpart and builds the edit parts via the part factory I
provided. As soon as I returned the lists of models for the editpartsvia
getModelChildren() the framework created the editparts for me.
Previous Topic:GEF 3.1 M5 WYSIWYG Text Editing
Next Topic:Outline Page Close
Goto Forum:
  


Current Time: Fri Apr 26 03:51:08 GMT 2024

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

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

Back to the top