Skip to main content



      Home
Home » Eclipse Projects » GEF » JFace: How do I know when my EditorPart has closed?
JFace: How do I know when my EditorPart has closed? [message #13298] Mon, 15 July 2002 11:05 Go to next message
Eclipse UserFriend
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.
Please ignore [message #13451 is a reply to message #13298] Mon, 15 July 2002 12:46 Go to previous message
Eclipse UserFriend
Originally posted by: none.ibm.com

Previous Topic:Toolbar EditPartAction disabled
Next Topic:TreeEditors and GEF
Goto Forum:
  


Current Time: Fri May 02 08:33:41 EDT 2025

Powered by FUDForum. Page generated in 0.03330 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top