Skip to main content



      Home
Home » Eclipse Projects » GEF » Editor dispose
Editor dispose [message #81465] Wed, 28 May 2003 15:06 Go to next message
Eclipse UserFriend
Hello,

I noticed that the method unhookControl() in AbstractEditPartViewer is
calling:

getRootEditPart().deactivate()

instead of

getRootEditPart().removeChild()

is there a reason? I have some cleanup that I am doing in my
DiagramEditPart.removeNotify() that I don't get a chance to run when the
editor is closing. Any feedback is appreciated.

Maged
Re: Editor dispose [message #81492 is a reply to message #81465] Wed, 28 May 2003 15:56 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

decactivate() is the method that we decided would be guaranteed to be
called. If you want removeNotify to be called, you could try calling
setContents((EditPart)null) afterwards.

removing children is slightly more expensive. It often results in selection
change notification.

"Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
news:bb31bs$jkm$1@rogue.oti.com...
> Hello,
>
> I noticed that the method unhookControl() in AbstractEditPartViewer is
> calling:
>
> getRootEditPart().deactivate()
>
> instead of
>
> getRootEditPart().removeChild()
>
> is there a reason? I have some cleanup that I am doing in my
> DiagramEditPart.removeNotify() that I don't get a chance to run when the
> editor is closing. Any feedback is appreciated.
>
> Maged
>
>
Previous Topic:draw2d.text bug
Next Topic:SOS Editor
Goto Forum:
  


Current Time: Sun Nov 09 20:10:46 EST 2025

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

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

Back to the top