Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » refresh editor
refresh editor [message #18073] Thu, 28 August 2008 15:32 Go to next message
Eclipse UserFriend
If I have an open editor and make changes to the file that is associated to
it, how can I get the editor to refresh iteself?
Re: refresh editor [message #18086 is a reply to message #18073] Thu, 28 August 2008 16:44 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Jay Simpson wrote:
> If I have an open editor and make changes to the file that is associated to
> it, how can I get the editor to refresh iteself?
>
>

Your editor has to register a IResourceChangeListener [see
ResourcesPlugin.getWorkspace().addResourceChangeListener()] and then
pick out changes to the file(s) it is interested in, and do whatever it
needs in order to refresh itself.

This article will help in implementing an efficient change listener:
http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html

Hope this helps,
Eric
Re: refresh editor [message #577770 is a reply to message #18073] Thu, 28 August 2008 16:44 Go to previous message
Eclipse UserFriend
Jay Simpson wrote:
> If I have an open editor and make changes to the file that is associated to
> it, how can I get the editor to refresh iteself?
>
>

Your editor has to register a IResourceChangeListener [see
ResourcesPlugin.getWorkspace().addResourceChangeListener()] and then
pick out changes to the file(s) it is interested in, and do whatever it
needs in order to refresh itself.

This article will help in implementing an efficient change listener:
http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html

Hope this helps,
Eric
Previous Topic:refresh editor
Next Topic:Ganymede desparately slow when setting target platform
Goto Forum:
  


Current Time: Fri May 09 19:06:40 EDT 2025

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

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

Back to the top