Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] ISynchronizer


> Now in order for me to listen our for a refresh, I need to setup a
> ResourceChangeListener, but at the same time I don't want to update my
> cached info for all resource change notifications, because that would then
> defeat the purpose of caching to improve performance in the first place.
> Being able to determine a refresh vs plain resource changed would solve
> this.


I've asked the core team about this exact problem a while ago, and have been
told that there is no mechanism for differentiating between a resource
change caused by modification in the workspace and a resource change caused
by a resource being sync'd with the file system. I've opened a bug report:

http://dev.eclipse.org/bugs/show_bug.cgi?id=14211

Luckily in the CVS plugin we only really care about changes to the
provider state (changed revision...) and this information is stored
in files that we control and are team-private (e.g. CVS/*). By saving
the timestamp when ever the plugin changes the CVS state of files in
the change listener we can tell if the plugin changes them or a 3rd party.

I hope this helps.

Jean-Michel

Back to the top