|
Re: ViewPart closing event [message #254273 is a reply to message #254038] |
Mon, 21 June 2004 15:03 |
Eclipse User |
|
|
|
Originally posted by: nick_edgar._no.spam.please_.ca.ibm.com
Try: view.getSite().getWorkbenchWindow().addPerspectiveListener(n ew
IPerspectiveListener2() { ... });
The method on IPerspectiveListener2 gets called before the view or its
controls are disposed, and the id parameter indicates which view is being
closed. Don't forget to remove the listener in your view's dispose method.
It would help to know more about what you're trying to do here. There may
be a cleaner way.
Nick
"S Dixit" <siddhi1972@yahoo.com> wrote in message
news:cb1s7r$679$1@eclipse.org...
> I am interested in the event when the ViewPart is closing.
>
> I checked dispose() and tried the IPartListener2 but both of them are just
> after the ViewPart is closed().
>
> I want some notification juse before the ViewPart closes.
>
> Any help appreciated.
>
> Thanks & Regards,
>
> Sid
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03309 seconds