Detecting external changes to a resource [message #290915] |
Fri, 02 September 2005 18:05  |
Eclipse User |
|
|
|
Greetings,
I'm looking for a way to detect changes to a workspace resource that
occur outside of Eclipse (so that I can keep my editor contents up to
date). I am already using an IResourceChangeListener on the workspace,
however this seems to only receive events that are triggered from within
eclipse.
If I open a file using the editor I've created in eclipse, then switch
to Windows explorer and delete the file, my IResourceChangeListener is
not notified.
I know there must be some way to determine outside changes because the
JDT Java editor handles this. If I open a Java editor, then delete the
file from Windows explorer, as soon as I switch back to eclipse the Java
editor will notify my that the file was deleted.
Any advice?
Thanks,
-Brad
|
|
|
|
|
Re: Detecting external changes to a resource [message #291082 is a reply to message #291011] |
Wed, 07 September 2005 11:12  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Paul Webster wrote:
> You can also set the Preferences>General>Workspace>Refresh
> Automatically preference. It's not instantanious, but it does keep
> checking the resources for you.
And causes a resource delta to be sent out.
Dani
>
> Later,
> PW
|
|
|
Powered by
FUDForum. Page generated in 0.04372 seconds