howto "overwrite" the close() method of the Workbench [message #435999] |
Mon, 29 August 2005 07:57  |
Eclipse User |
|
|
|
Hi,
I'd like to find a way to reject the workbench closing under certain
circuumstances. In particular I have an editor which has a button in it,
that calls IWorkbench.close() when clicked. But before the closing
can actually happen, I have to read some stuff from the editor input and
send that over a network connection to a server. Then depending on the
answer from the server the closing needs to be intercepted or not.
I did not yet try, but from the docs it seems that using a
WindowListener and listen to the close-Event of the Editor-Window might
be a proper way, or is there another way to do this?
Andreas
|
|
|
|
Powered by
FUDForum. Page generated in 0.37056 seconds