Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how eclipse know the file is opened?
how eclipse know the file is opened? [message #256955] Tue, 29 June 2004 23:31 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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' ?
Previous Topic:Eclipse 3.0 now available
Next Topic:Getting Started
Goto Forum:
  


Current Time: Wed May 07 19:39:00 EDT 2025

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

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

Back to the top