Program: 125692
Project: 125692
Buggy source:
protected boolean visit(IResourceDelta delta,Collection<ResourceNode> pathToRefresh){
  IResource resource=delta.getResource();
  if (resource.getType() == IResource.ROOT) {
    return true;
  }
  try {
    if (resource.getType() == IResource.PROJECT) {
      if (resource.getProject().hasNature(TalendNature.ID)) {
        return true;
      }
      return false;
    }
  }
 catch (  CoreException e) {
    ExceptionHandler.process(e);
    return false;
  }
  if (resource.getType() == IResource.FOLDER) {
    if (FilesUtils.isSVNFolder(resource)) {
      return false;
    }
    IRepositoryNode topNode=getTopNode(delta);
    if (topNode == null) {
      return false;
    }
    ResourceNode resourceNode=new ResourceNode();
    resourceNode.setPath(resource.getParent().getFullPath().toPortableString());
    resourceNode.setTopNode(topNode);
    resourceNode.setTopNodePath(getTopLevelNodePath((RepositoryNode)topNode).toPortableString());
    if (delta.getKind() == IResourceDelta.ADDED) {
      pathToRefresh.add(resourceNode);
      return false;
    }
 else     if (delta.getKind() == IResourceDelta.REMOVED) {
      pathToRefresh.add(resourceNode);
      return false;
    }
    return true;
  }
  if (resource.getType() == IResource.FILE) {
    IRepositoryNode topNode=getTopNode(delta);
    if (topNode == null) {
      return false;
    }
    ResourceNode resourceNode=new ResourceNode();
    resourceNode.setPath(resource.getParent().getFullPath().toPortableString());
    resourceNode.setTopNode(topNode);
    resourceNode.setTopNodePath(getTopLevelNodePath((RepositoryNode)topNode).toPortableString());
    if (delta.getKind() == IResourceDelta.ADDED) {
      pathToRefresh.add(resourceNode);
      ((RepositoryNode)topNode).setInitialized(false);
      topNode.getChildren().clear();
      return false;
    }
 else     if (delta.getKind() == IResourceDelta.REMOVED) {
      pathToRefresh.add(resourceNode);
      ((RepositoryNode)topNode).setInitialized(false);
      topNode.getChildren().clear();
      return false;
    }
 else     if (delta.getKind() == IResourceDelta.CHANGED) {
      XmiResourceManager xrm=new XmiResourceManager();
      if (xrm.isPropertyFile((IFile)resource)) {
        pathToRefresh.add(resourceNode);
        ResourceNode fileResourceNode=new ResourceNode();
        fileResourceNode.setPath(resource.getFullPath().toPortableString());
        pathToRefresh.add(fileResourceNode);
        ((RepositoryNode)topNode).setInitialized(false);
        topNode.getChildren().clear();
      }
      return false;
    }
  }
  return false;
}

Fixed version (ground truth):
protected boolean visit(IResourceDelta delta,Collection<ResourceNode> pathToRefresh){
  IResource resource=delta.getResource();
  if (resource.getType() == IResource.ROOT) {
    return true;
  }
  try {
    if (resource.getType() == IResource.PROJECT) {
      if (resource.getProject().hasNature(TalendNature.ID)) {
        return true;
      }
      return false;
    }
  }
 catch (  CoreException e) {
    ExceptionHandler.process(e);
    return false;
  }
  if (resource.getType() == IResource.FOLDER) {
    if (FilesUtils.isSVNFolder(resource)) {
      return false;
    }
    if (!isValidResourceDelta(delta)) {
      return false;
    }
    if (delta.getKind() == IResourceDelta.ADDED) {
      ResourceNode resourceNode=getParentResourceNode(delta,resource);
      pathToRefresh.add(resourceNode);
      return false;
    }
 else     if (delta.getKind() == IResourceDelta.REMOVED) {
      ResourceNode resourceNode=getParentResourceNode(delta,resource);
      pathToRefresh.add(resourceNode);
      return false;
    }
    return true;
  }
  if (resource.getType() == IResource.FILE) {
    if (!isValidResourceDelta(delta)) {
      return false;
    }
    IRepositoryNode topNode=getTopNodeFromResourceDelta(delta);
    ResourceNode resourceNode=new ResourceNode();
    resourceNode.setPath(resource.getParent().getFullPath().toPortableString());
    resourceNode.setTopNode(topNode);
    resourceNode.setTopNodePath(getTopLevelNodePathForRefresh((RepositoryNode)topNode).toPortableString());
    if (delta.getKind() == IResourceDelta.ADDED) {
      pathToRefresh.add(resourceNode);
      ((RepositoryNode)topNode).setInitialized(false);
      topNode.getChildren().clear();
      return false;
    }
 else     if (delta.getKind() == IResourceDelta.REMOVED) {
      pathToRefresh.add(resourceNode);
      ((RepositoryNode)topNode).setInitialized(false);
      topNode.getChildren().clear();
      return false;
    }
 else     if (delta.getKind() == IResourceDelta.CHANGED) {
      XmiResourceManager xrm=new XmiResourceManager();
      if (xrm.isPropertyFile((IFile)resource)) {
        pathToRefresh.add(resourceNode);
        ResourceNode fileResourceNode=new ResourceNode();
        fileResourceNode.setPath(resource.getFullPath().toPortableString());
        pathToRefresh.add(fileResourceNode);
        ((RepositoryNode)topNode).setInitialized(false);
        topNode.getChildren().clear();
      }
      return false;
    }
  }
  return false;
}