Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-02-07 22:01:47 +0000
committerMichael Valenta2006-02-07 22:01:47 +0000
commit1d1a25339f531b2a2a480fb600b1177893b4b870 (patch)
tree39ea5ea8e99dcb4418df4a60e794dd639feeb333 /bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/ISynchronizationScope.java
parent65ca5db296e04f939db404976a61a49235beb0ef (diff)
downloadeclipse.platform.team-1d1a25339f531b2a2a480fb600b1177893b4b870.tar.gz
eclipse.platform.team-1d1a25339f531b2a2a480fb600b1177893b4b870.tar.xz
eclipse.platform.team-1d1a25339f531b2a2a480fb600b1177893b4b870.zip
Bug 126485 [Mapping API] Changes to ISynchronizationScopeManager API
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/ISynchronizationScope.java')
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/ISynchronizationScope.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/ISynchronizationScope.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/ISynchronizationScope.java
index e17b6d809..a87e46bbb 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/ISynchronizationScope.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/mapping/ISynchronizationScope.java
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.team.core.mapping;
+import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.mapping.*;
import org.eclipse.team.core.mapping.provider.SynchronizationScopeManager;
@@ -38,6 +39,29 @@ import org.eclipse.team.core.mapping.provider.SynchronizationScopeManager;
public interface ISynchronizationScope extends IResourceMappingScope {
/**
+ * Return the projects that bound this scope.
+ * The projects returned will depend on the type of context used
+ * to generate this scope. If the context is a local context,
+ * all workspace projects are returned. If it is a remote context,
+ * the projects are the same as those returned from
+ * {@link RemoteResourceMappingContext#getProjects()}
+ * @return the projects that bound this scope
+ */
+ IProject[] getProjects();
+
+ /**
+ * Return the resource mapping context that the scope
+ * uses to obtain traversals from resource mappings
+ * in order to determine what resources are in the scope.
+ *
+ * @see ResourceMapping#getTraversals(ResourceMappingContext, org.eclipse.core.runtime.IProgressMonitor)
+ *
+ * @return the resource mapping contxt that the scope
+ * uses to obtain traversals from resource mappings
+ */
+ ResourceMappingContext getContext();
+
+ /**
* Return the array of mappings that acted as the input to the scope builder
* that was used to build this scope. This set usually come from a view
* selection but could come from another source. In most cases, clients will
@@ -176,5 +200,14 @@ public interface ISynchronizationScope extends IResourceMappingScope {
* @return the mapping for the model object that is contained in this scope
*/
public ResourceMapping getMapping(Object modelObject);
+
+ /**
+ * Refresh the given mapping asynchronously. This method
+ * is called by {@link ISynchronizationScopeParticipant}
+ * instances when they detect changes that require the scope
+ * to be adjusted.
+ * @param mappings the mappings to be refeshed.
+ */
+ void refresh(ResourceMapping[] mappings);
}

Back to the top