Skip to main content



      Home
Home » Eclipse Projects » GEF » about call sequence of the editpart and figure?
about call sequence of the editpart and figure? [message #105312] Mon, 17 November 2003 04:40 Go to next message
Eclipse UserFriend
Originally posted by: tranfy.hotmail.com

I have two model : parent and child. The editPart and Figure correspond
to parent are p_editPart and c_figure. Similarily, the editPart
and figure correspond to child are c_editPart and c_figure.
In the method of getModel() of the p_eidtPart returns child object.
My question is that : when I create an instance of the p_editPart ,when
the eclipse call the c_editPart and c_figure and instance them ?

Thanks
Re: about call sequence of the editpart and figure? [message #105415 is a reply to message #105312] Mon, 17 November 2003 19:44 Go to previous message
Eclipse UserFriend
Originally posted by: felix.mayer.comcast.net

I don't understand why your p_editPart returns the child and not the parent.

In general, the GEF asks your EditPartFactory to create the EditPart for
each model object.
It gets started with the one that you specify with
GraphicalViewer.setContents( parent ) (in your case)
and works its way down with AbstractEditPart.getModelChildren(), which for
your p_editPart would return a List containing just child.


"tranfy" <tranfy@hotmail.com> wrote in message
news:bpa537$ihq$1@eclipse.org...
>
> I have two model : parent and child. The editPart and Figure correspond
> to parent are p_editPart and c_figure.&#12288;Similarily, the editPart
> and figure correspond to child are c_editPart and c_figure.
> In the method of getModel() of the p_eidtPart returns child object.
> My question is that : when I create an instance of the p_editPart ,when
> the eclipse call the c_editPart and c_figure and instance them ?
>
> Thanks
>
>
Previous Topic:How to make an editpart not selectable ?
Next Topic:Unable to deselect node or connection
Goto Forum:
  


Current Time: Tue Jul 22 02:27:55 EDT 2025

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

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

Back to the top