Skip to main content



      Home
Home » Newcomers » Newcomers » View Close Event
View Close Event [message #256032] Sat, 10 May 2008 10:39 Go to next message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

Hi All.

From the createPartControl of a ViewPart, I'am adding a listener to an
event raised by one of my objects. I want to remove this listener when
the view is closed, but am unable to trap the view closing.

Where should I place the code to remove the listener?

Any help is appreciated.

Anup
Re: View Close Event [message #256049 is a reply to message #256032] Sat, 10 May 2008 17:33 Go to previous message
Eclipse UserFriend
Override the dispose() method in your view. Remove the listener there.

HTH,

Wayne

On Sat, 2008-05-10 at 20:09 +0530, Anup Gokhale wrote:
> Hi All.
>
> From the createPartControl of a ViewPart, I'am adding a listener to an
> event raised by one of my objects. I want to remove this listener when
> the view is closed, but am unable to trap the view closing.
>
> Where should I place the code to remove the listener?
>
> Any help is appreciated.
>
> Anup
Previous Topic:reproduce configuration
Next Topic:Compile error using mingw
Goto Forum:
  


Current Time: Sun May 25 23:58:26 EDT 2025

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

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

Back to the top