Detecting event for closing view [message #452684] |
Wed, 12 July 2006 16:23 |
Eclipse User |
|
|
|
Originally posted by: alexixlebaulois.yahoo.fr
Hi everybody,
I would like to detect when a user clicks on the cross to close a view. I have tried IPartListener2 but the method "closedView" is called after the view has been closed. What I need is to prevent my view to close until I have performed some instructions. Could you please help me ?
Thank you,
Alex
|
|
|
Re: Detecting event for closing view [message #452709 is a reply to message #452684] |
Thu, 13 July 2006 08:32 |
Eclipse User |
|
|
|
Originally posted by: tom.seidel.spiritlink.de
alexixlebaulois wrote:
> Hi everybody,
>
> I would like to detect when a user clicks on the cross to close a view. I have tried IPartListener2 but the method "closedView" is called after the view has been closed. What I need is to prevent my view to close until I have performed some instructions. Could you please help me ?
>
> Thank you,
>
> Alex
Hi Alex,
have you tried to overwrite the #dispose() - Method of your Viewpart?
--
Cheerz,
Tom
-- http://www.spiritlink.de --
|
|
|
Re: Detecting event for closing view [message #452714 is a reply to message #452684] |
Thu, 13 July 2006 11:28 |
Eclipse User |
|
|
|
Originally posted by: lamont_gilbert.rigidsoftware.com
alexixlebaulois wrote:
> Hi everybody,
>
> I would like to detect when a user clicks on the cross to close a view. I
> have tried IPartListener2 but the method "closedView" is called after the
> view has been closed. What I need is to prevent my view to close until I
> have performed some instructions. Could you please help me ?
>
> Thank you,
>
> Alex
Most editors do this. When you close then and their is unsaved work they
will as to save or not or to cancel. Use debugber and find out how they do
the cancel.
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into the
sheepfold{}, but climbeth up some other *way, the same is a thief and a
robber."
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04016 seconds