Workspace ADDED distinguished from file system ADDED [message #336468] |
Mon, 15 June 2009 15:20 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02185 seconds