Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Proper way to identify editor lifecycle events?
Proper way to identify editor lifecycle events? [message #332140] Mon, 06 October 2008 19:45
Eclipse UserFriend
Originally posted by: rob.brainkandy-dot-org.org

Hello all,

I need to track editor lifecycle events in my plug-in as a way to perform a
test. Right now, the way I'm doing it seems fairly complex, and I'd like to know
if there is an easier way to do it.

Right now, when I register this service, I start by finding all workbench
windows, and adding a part listener to every one. I also add a window listener
so that when windows open and close, I can register and deregister this same
part listener.

Then in the part listener, I identify if the event references an ITextEditor
instance, and operate based on that.

This just seems rather longish. Is there a simpler solution? It almost feels as
though this service should already be available, and that I don't need to track
all windows just to register a part listener.

Thanks, Robert
Previous Topic:Auto-opening a DialogCellEditor
Next Topic:register a listener at workbench/plugin start
Goto Forum:
  


Current Time: Sat Jul 27 16:50:20 GMT 2024

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

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

Back to the top