Making Editparts create their own child Editparts [message #174761] |
Thu, 31 March 2005 22:05 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04053 seconds