protected void changed(Resource target) { String message = NLS.bind(Messages.localstore_resourceIsOutOfSync, target.getFullPath()); status.add( new ResourceStatus(IResourceStatus.OUT_OF_SYNC_LOCAL, target.getFullPath(), message)); if (affectedResources == null) affectedResources = new ArrayList<Resource>(20); affectedResources.add(target); resourceChanged = true; }
/** * Optimized refreshLocal for files. This implementation does not block the workspace for the * common case where the file exists both locally and on the file system, and is in sync. For all * other cases, it defers to the super implementation. */ @Override public void refreshLocal(int depth, IProgressMonitor monitor) throws CoreException { if (!getLocalManager().fastIsSynchronized(this)) super.refreshLocal(IResource.DEPTH_ZERO, monitor); }