Proper way to identify editor lifecycle events? [message #332140] |
Mon, 06 October 2008 19:45 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02976 seconds