Removing the editpart [message #131172] |
Thu, 06 May 2004 16:39 |
Eclipse User |
|
|
|
Originally posted by: jay.nonono.non
How should i go about deleting a child programatically? Right now, i just
remove the child's model from the parents modellist and fire the event to
notify it. upon receiving the notification the parents editpart is calling
the refreshchildren. Is this sequence correct? its not deleting the
figures.
Thanks
jaylloi
|
|
|
|
Re: Removing the editpart [message #131220 is a reply to message #131185] |
Thu, 06 May 2004 18:23 |
Eclipse User |
|
|
|
Originally posted by: jay.dfasfj.coa
Thanks, i was not looking for the PROPERTY_CHILDREN_REMOVED event id, its
working great. But i cannot undo the changes. Now how do i add this
operation to the commandStack?
Thanks
Jay
Pratik Shah wrote:
> Yes, that is correct, and that should delete the figure. Does your
> getModelChildren() method in the parent edit part return the updated list of
> children? You should set a breakpoint in refreshChlidren() and see why it's
> not deleting the child edit part.
> "jay" <jay@nonono.non> wrote in message news:c7dpnt$lnu$1@eclipse.org...
> > How should i go about deleting a child programatically? Right now, i just
> > remove the child's model from the parents modellist and fire the event to
> > notify it. upon receiving the notification the parents editpart is calling
> > the refreshchildren. Is this sequence correct? its not deleting the
> > figures.
> >
> > Thanks
> > jaylloi
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03006 seconds