Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsResource editor opened event?
https://www.eclipse.org/forums/index.php/mv/msg/170513/541931/#msg_541931
Is there any type of event to listen openings of editors for any files/resources? Also I expect this event to be fired for restored editors when workbench is started.
Thanks!]]>Andrey2010-06-23T09:13:43-00:00Re: Resource editor opened event?
https://www.eclipse.org/forums/index.php/mv/msg/170513/541973/#msg_541973
> Hi,
>
> Is there any type of event to listen openings of editors for any
> files/resources? Also I expect this event to be fired for restored
> editors when workbench is started.
You probably want to use IWorkbenchPage#addPartListener(IPartListener2
listener);
That will tell you when parts are open, and you can check them to see if
they're editors.