diff options
author | Michael Valenta | 2006-02-05 03:04:43 +0000 |
---|---|---|
committer | Michael Valenta | 2006-02-05 03:04:43 +0000 |
commit | f70a859269fee3920682337f9f3bb6fe945538be (patch) | |
tree | ee4c79f91f28c0b36bc7b64a794f24a25f20bec8 /bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java | |
parent | 80e617145b57e4afe13fc331c4c14f762d52bdef (diff) | |
download | eclipse.platform.team-f70a859269fee3920682337f9f3bb6fe945538be.tar.gz eclipse.platform.team-f70a859269fee3920682337f9f3bb6fe945538be.tar.xz eclipse.platform.team-f70a859269fee3920682337f9f3bb6fe945538be.zip |
Cleaning up API in preparation for API freeze
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java')
-rw-r--r-- | bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java index ae500a434..cbc95b33d 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/provider/SynchronizationContext.java @@ -15,9 +15,10 @@ import org.eclipse.core.resources.mapping.ResourceMapping; import org.eclipse.core.resources.mapping.ResourceTraversal; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.team.core.ICache; import org.eclipse.team.core.mapping.*; +import org.eclipse.team.internal.core.Cache; import org.eclipse.team.internal.core.Policy; -import org.eclipse.team.internal.core.mapping.DiffCache; /** * Abstract implementation of the {@link ISynchronizationContext} interface. @@ -35,10 +36,10 @@ import org.eclipse.team.internal.core.mapping.DiffCache; */ public abstract class SynchronizationContext implements ISynchronizationContext { - private IResourceMappingScope scope; + private ISynchronizationScope scope; private final int type; private final IResourceDiffTree diffTree; - private DiffCache cache; + private Cache cache; /** * Create a synchronization context. @@ -46,7 +47,7 @@ public abstract class SynchronizationContext implements ISynchronizationContext * @param type the type of synchronization (ONE_WAY or TWO_WAY) * @param diffTree the sync info tree that contains all out-of-sync resources */ - protected SynchronizationContext(IResourceMappingScope scope, int type, IResourceDiffTree diffTree) { + protected SynchronizationContext(ISynchronizationScope scope, int type, IResourceDiffTree diffTree) { this.scope = scope; this.type = type; this.diffTree = diffTree; @@ -55,7 +56,7 @@ public abstract class SynchronizationContext implements ISynchronizationContext /** * {@inheritDoc} */ - public IResourceMappingScope getScope() { + public ISynchronizationScope getScope() { return scope; } @@ -78,9 +79,9 @@ public abstract class SynchronizationContext implements ISynchronizationContext /** * {@inheritDoc} */ - public synchronized IDiffCache getCache() { + public synchronized ICache getCache() { if (cache == null) { - cache = new DiffCache(this); + cache = new Cache(); } return cache; } @@ -97,7 +98,7 @@ public abstract class SynchronizationContext implements ISynchronizationContext */ public void refresh(ResourceMapping[] mappings, IProgressMonitor monitor) throws CoreException { monitor.beginTask(null, 100); - ResourceMappingScopeManager manager = null; //getScopeManager(); + SynchronizationScopeManager manager = null; //getScopeManager(); if (manager == null) { // The scope manager is missing so just refresh everything refresh(scope.getTraversals(), IResource.NONE, Policy.subMonitorFor(monitor, 50)); |