Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-06-01 17:20:05 +0000
committerMichael Valenta2002-06-01 17:20:05 +0000
commita41fc643342bb7d3fdcde0aaed1d7197c81db669 (patch)
tree8010cc5568d5503b83e88c85c5cbaefda63a6d0c
parent45d657af0f64a383d714d1877396b3137f8f7613 (diff)
downloadeclipse.platform.team-a41fc643342bb7d3fdcde0aaed1d7197c81db669.tar.gz
eclipse.platform.team-a41fc643342bb7d3fdcde0aaed1d7197c81db669.tar.xz
eclipse.platform.team-a41fc643342bb7d3fdcde0aaed1d7197c81db669.zip
18615: Dav: "Checkout as project" results in ".project does not exist"
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java
index f881d9b43..71f79de39 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/ResourceState.java
@@ -468,10 +468,12 @@ public abstract class ResourceState {
final public void removeState() throws TeamException {
try {
- SynchronizedTargetProvider.getSynchronizer().flushSyncInfo(
- stateKey,
- localResource,
- IResource.DEPTH_INFINITE);
+ if (localResource.exists() || localResource.isPhantom()) {
+ SynchronizedTargetProvider.getSynchronizer().flushSyncInfo(
+ stateKey,
+ localResource,
+ IResource.DEPTH_INFINITE);
+ }
} catch (CoreException e) {
throw TeamPlugin.wrapException(e);
}

Back to the top