JFace: How do I know when my EditorPart has closed? [message #13298] |
Mon, 15 July 2002 11:05  |
Eclipse User |
|
|
|
Originally posted by: none.ibm.com
I have a modeless dialog that needs to know when the EditorPart is closed.
There seems to be no listening API on EditorPart to find out when it is
closed. Do I have to listen to the entire PartService even if I am just
interested in one Editor instance? This seems odd.
Also, when the Editor becomes "inactive" (meaning another Editor is active,
not some other WorkbenchPart), I want to hide the modeless dialog. For
example, if I open a different Editor type I would like the dialog to
disappear. Can I do this?
Why can't I get the Editor's Control? It seems like adding a dispose and
visibility listener using SWT would be exactly what I want to do. An
EditorPart has to have a control, so why not expose it? BTW, I can't just
make the control available in my Editor because I subclass
MultipageEditorPart.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04009 seconds