summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-05-24 20:34:53 (EDT)
committer John Arthorne2012-09-11 10:08:10 (EDT)
commit9024a36882b5e2662d28e96422544acbb9200279 (patch)
treecc773e794b658cf9f2219b1d5cb33ff053983cbd
parent032f18c757aa1bfbe5d0f387268138235ec75065 (diff)
downloadeclipse.platform.resources-9024a36882b5e2662d28e96422544acbb9200279.zip
eclipse.platform.resources-9024a36882b5e2662d28e96422544acbb9200279.tar.gz
eclipse.platform.resources-9024a36882b5e2662d28e96422544acbb9200279.tar.bz2
Bug 380337 - Dangling symbolic link confuses Eclipse.
-rw-r--r--bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/RefreshLocalVisitor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/RefreshLocalVisitor.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/RefreshLocalVisitor.java
index b3aac72..3e52238 100644
--- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/RefreshLocalVisitor.java
+++ b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/RefreshLocalVisitor.java
@@ -300,6 +300,9 @@ public class RefreshLocalVisitor implements IUnifiedTreeVisitor, ILocalStoreCons
return true;
}
}
+ if (node.isSymbolicLink() && !node.existsInFileSystem())
+ return true; // Dangling symbolic links are considered to be synchronized.
+
if (synchronizeGender(node, target))
synchronizeLastModified(node, target);
if (targetType == IResource.FILE) {