Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Workspace ADDED distinguished from file system ADDED
Workspace ADDED distinguished from file system ADDED [message #336468] Mon, 15 June 2009 19:20
Farokh Morshed is currently offline Farokh MorshedFriend
Messages: 53
Registered: July 2009
Member
As we know, A workspace resource change listener that implements
IResourceChangeListener, is notified when a something is ADDED, CHANGED,
REMOVED, from the workspace.

But, how can this listener (that I implement) find out whether the ADDED
was a workspace ADDED, versus an actual file system ADDED? I don't see
any flags in the IResourceDelta that makes this distinction.

The reason I want this distinction is because in our plugin we find out
about the files in the project in a different way than to listening to the
workspace ADDED event. But, I want to listen to the ADDED event just to
find out if the file on the file system was changed. What happens is that
when the project is opened our listener gets an ADDED event for every file
in the project because these files are being "added" to the workspace.
This creates a performance problem. I can't tell if the ADDED means added
to the workspace or added to the file system.

I have seen where you can write your own refresh provider. But that seems
like a huge hammer.

Any ideas?
Previous Topic:Finding fragment that contributes to extension point
Next Topic:JFace Viewer
Goto Forum:
  


Current Time: Thu Apr 18 10:59:29 GMT 2024

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

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

Back to the top