Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Refresh editor(When file is changed)
Refresh editor [message #721458] Thu, 01 September 2011 19:57 Go to next message
Kitesurfer () is currently offline Kitesurfer ()Friend
Messages: 87
Registered: December 2009
Member
Hello,

File A is editted in Eclipse (in a workspace).
In my plugin I download a new version a file A (overwriting the old file A), I then want to refresh the editor.
I know how to find the editor that is editting the old version of file A ... but how do I refresh this editor? so that I see the new version of file A in my editor when this download function of my plugin is ended.
Re: Refresh editor [message #721523 is a reply to message #721458] Fri, 02 September 2011 01:29 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Normally editors refresh themselves when the workspace is refreshed and
thereby notifies the editor of the change in that file. Are you doing
this update via the workspace APIs; if not, you need to do a workspace
refresh.


On 01/09/2011 12:57 PM, Kitesurfer wrote:
> Hello,
>
> File A is editted in Eclipse (in a workspace).
> In my plugin I download a new version a file A (overwriting the old
> file A), I then want to refresh the editor.
> I know how to find the editor that is editting the old version of file
> A ... but how do I refresh this editor? so that I see the new version
> of file A in my editor when this download function of my plugin is ended.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Refresh editor [message #721582 is a reply to message #721458] Fri, 02 September 2011 07:48 Go to previous message
Jakob Schiotz is currently offline Jakob SchiotzFriend
Messages: 3
Registered: September 2011
Junior Member
Kitesurfer wrote on Thu, 01 September 2011 15:57
Hello,

File A is editted in Eclipse (in a workspace).
In my plugin I download a new version a file A (overwriting the old file A), I then want to refresh the editor.
I know how to find the editor that is editting the old version of file A ... but how do I refresh this editor? so that I see the new version of file A in my editor when this download function of my plugin is ended.


Right-click on the file (or the project) and choose Refresh.

Or press F5.

/Jakob
Previous Topic:[SOLVED] Error when attempting to upgrade to Indigo on a Mac
Next Topic:C++ Build problem!!!!!!!!!!!!
Goto Forum:
  


Current Time: Fri Apr 26 06:30:57 GMT 2024

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

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

Back to the top