Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalgorzata Janczarska2012-10-31 15:06:07 +0000
committerMalgorzata Janczarska2012-10-31 15:06:07 +0000
commitb5dcf67fe304d69b6ba81d5d1cdaca10ecb32041 (patch)
treeadf4d1f80ea298b2f1e558c0673cd60244628d5b /bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui
parentd6fbf99046f2aec01c425c2c618d7589e56c5a70 (diff)
downloadeclipse.platform.team-b5dcf67fe304d69b6ba81d5d1cdaca10ecb32041.tar.gz
eclipse.platform.team-b5dcf67fe304d69b6ba81d5d1cdaca10ecb32041.tar.xz
eclipse.platform.team-b5dcf67fe304d69b6ba81d5d1cdaca10ecb32041.zip
Bug 362219 -Synchronize with Workspace errors with "outer scope rule"v20121031-150607I20121106-0800I20121031-2000
when new file is not under an existing folder
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/patch/ApplyPatchSubscriberMergeContext.java20
1 files changed, 1 insertions, 19 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/patch/ApplyPatchSubscriberMergeContext.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/patch/ApplyPatchSubscriberMergeContext.java
index 5291d0927..d3f901aeb 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/patch/ApplyPatchSubscriberMergeContext.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/patch/ApplyPatchSubscriberMergeContext.java
@@ -13,9 +13,8 @@ package org.eclipse.team.internal.ui.synchronize.patch;
import org.eclipse.compare.internal.core.patch.FilePatch2;
import org.eclipse.compare.internal.core.patch.HunkResult;
import org.eclipse.compare.internal.patch.WorkspacePatcher;
-import org.eclipse.core.resources.*;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.team.core.diff.IDiff;
import org.eclipse.team.core.diff.IThreeWayDiff;
import org.eclipse.team.core.mapping.ISynchronizationScopeManager;
@@ -99,21 +98,4 @@ public class ApplyPatchSubscriberMergeContext extends SubscriberMergeContext {
throws CoreException {
// do nothing
}
-
- public ISchedulingRule getMergeRule(IDiff diff) {
- IResource resource = getDiffTree().getResource(diff);
- IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace()
- .getRuleFactory();
- if (!resource.exists()) {
- // for additions return rule for all parents that need to be created
- IContainer parent = resource.getParent();
- while (!parent.exists()) {
- resource = parent;
- parent = parent.getParent();
- }
- return ruleFactory.createRule(resource);
- } else {
- return super.getMergeRule(diff);
- }
- }
}

Back to the top