Identify when Eclipse is closed [message #713933] |
Tue, 09 August 2011 08:30  |
Eclipse User |
|
|
|
Hi all,
I am working on Eclipse XML editor source code and in particular on plug-in org.eclipse.wst.xml.ui.
I would like to know which class/classes are involved when Eclipse in closing, that means when user selects File->Exit (or similar on other not Windows OS).
Thanks
Marco
|
|
|
|
|
|
|
Re: Identify when Eclipse is closed [message #714234 is a reply to message #713976] |
Wed, 10 August 2011 02:18  |
Eclipse User |
|
|
|
Originally posted by:
On 2011-08-09 16:02, MarcoGT wrote:
> And how can I register the listener?
Well, the documentation of IWorkbenchListener refers to
IWorkbench#addWorkbenchListener,so you need an instance of IWorkbench to
register, right? If you check the interface documentation of IWorkbench,
you are delegated to org.eclipse.ui.PlatformUI#getWorkbench, so here you
could go. I strongly recommend to study the (very short) interface
documentation of the related types, which usually give you the right answer.
HTH & Greetings from Bremen,
- Daniel Krügler
|
|
|
Powered by
FUDForum. Page generated in 0.12666 seconds