synchronized(vfsUpdateLock)
{
for(int i = 0; i < vfsUpdates.size(); i++)
{
VFSUpdate msg = (VFSUpdate)vfsUpdates
.get(i);
if(msg.getPath().equals(path))
{
// don't send two updates
// for the same path
return;
}
}
vfsUpdates.add(new VFSUpdate(path));
if(vfsUpdates.size() == 1)
{
// we were the first to add an update;
// add update sending runnable to AWT