Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Removing the editpart
Removing the editpart [message #131172] Thu, 06 May 2004 16:39 Go to next message
Eclipse UserFriend
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 #131185 is a reply to message #131172] Thu, 06 May 2004 17:50 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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
>
Re: Removing the editpart [message #131220 is a reply to message #131185] Thu, 06 May 2004 18:23 Go to previous message
Eclipse UserFriend
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
> >
Previous Topic:GEF / Eclipse plugin tutorial
Next Topic:ImageFigure size (draw2d)
Goto Forum:
  


Current Time: Sat Apr 20 12:54:20 GMT 2024

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

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

Back to the top