how eclipse know the file is opened? [message #256955] |
Tue, 29 June 2004 23:31  |
Eclipse User |
|
|
|
hi all,
i am comfused on how eclipse know files is opened in editor,. for
example, how eclipse remember the recently opened files, is there a way to
register something like a 'ResourceOpenedListener' ?
--
regards
...jay
|
|
|
Re: how eclipse know the file is opened? [message #260849 is a reply to message #256955] |
Mon, 12 July 2004 14:37  |
Eclipse User |
|
|
|
Originally posted by: john.eclipsefaq.org
You can add an IPartListener to IWorkbenchPage (extends IPartService).
This listener will be notified on all part openings, activations (focus
gained), etc. This way you can track the most recently opened and viewed
editors. From the editor's input you can get the file if it is
available. Cast IEditorInput to IFileEditorInput and call getFile().
--
Jay Chen wrote:
> hi all,
> i am comfused on how eclipse know files is opened in editor,. for
> example, how eclipse remember the recently opened files, is there a way to
> register something like a 'ResourceOpenedListener' ?
|
|
|
Powered by
FUDForum. Page generated in 0.07535 seconds