Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 11510
Collapse All | Expand All

(-)RefreshLocalVisitor.java (-2 / +10 lines)
Lines 211-219 Link Here
211
		if (targetType == IResource.PROJECT)
211
		if (targetType == IResource.PROJECT)
212
			return true;
212
			return true;
213
		if (node.existsInWorkspace() && node.existsInFileSystem()) {
213
		if (node.existsInWorkspace() && node.existsInFileSystem()) {
214
			/* we don't care about folder last modified */
214
			/* for folders we only care about updating local status */
215
			if (node.isFolder() && targetType == IResource.FOLDER)
215
			if (node.isFolder() && targetType == IResource.FOLDER) {
216
				// if not local, mark as local
217
				if (!target.isLocal(IResource.DEPTH_ZERO)) {
218
					ResourceInfo info = target.getResourceInfo(false, true);
219
					if (info == null)
220
						return true;
221
					target.getLocalManager().updateLocalSync(info, node.getLastModified());					
222
				}
216
				return true;
223
				return true;
224
			} 
217
			/* compare file last modified */
225
			/* compare file last modified */
218
			long lastModifed = target.getResourceInfo(false, false).getLocalSyncInfo();
226
			long lastModifed = target.getResourceInfo(false, false).getLocalSyncInfo();
219
			if (lastModifed == node.getLastModified())
227
			if (lastModifed == node.getLastModified())

Return to bug 11510