Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Macguire2002-05-10 04:44:29 +0000
committerKevin Macguire2002-05-10 04:44:29 +0000
commit990c9ca469394e2f4a418c7b65757d4af89ba935 (patch)
tree590894bd97fba841e054b3b2a1f0fd17fc71eb5a
parente74914be10ce2b43990ea4468449717ac73315b8 (diff)
downloadeclipse.platform.team-990c9ca469394e2f4a418c7b65757d4af89ba935.tar.gz
eclipse.platform.team-990c9ca469394e2f4a418c7b65757d4af89ba935.tar.xz
eclipse.platform.team-990c9ca469394e2f4a418c7b65757d4af89ba935.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/SynchronizedTargetProvider.java35
1 files changed, 32 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/SynchronizedTargetProvider.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/SynchronizedTargetProvider.java
index 1c13ccc27..422768af6 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/SynchronizedTargetProvider.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/target/SynchronizedTargetProvider.java
@@ -48,9 +48,11 @@ public abstract class SynchronizedTargetProvider extends TargetProvider {
}
/**
- * Create a new simple team provider initialized with the given state factory.
+ * Create a target provider, with given storage key.
+ * The key is the localName of the QualifiedName for state lookup.
+ * @see QualifiedName
*/
- public SynchronizedTargetProvider() {
+ public SynchronizedTargetProvider(String key) {
super();
}
@@ -334,8 +336,35 @@ public abstract class SynchronizedTargetProvider extends TargetProvider {
*/ }
+ private static String[] getAllTargetTypes() {
+ return new String[] {"org.eclipse.team.webdav"};
+ }
+
+ private static SynchronizedTargetProvider newProvider(IProject project, String type, String key) {
+ // look up class via extension point
+ SynchronizedTargetProvider provider; //= new SomeClassWeLookedUp(key)
+ provider.setProject(project);
+ provider.restoreConfiguration();
+ }
+
+ /*************** Synchronizer/Configuration ***************/
- /*************** Config Info Persisting ***************/
+ public static void restoreAllProviders() throws CoreException, IOException {
+ String[] targetTypes = getAllTargetTypes();
+ QualifiedName[] partners = getSynchronizer().getPartners();
+ boolean registered = false;
+
+ for (int i = 0; i < partners.length; i++) {
+ for (int j = 0; j < targetTypes.length; j++) {
+ String targetType = partners[i].getQualifier();
+ if(targetType == targetTypes[j]) {
+ String secondaryKey = partners[i].getLocalName();
+ IProject project =...
+ newProvider(project, targetType, secondaryKey);
+ }
+ }
+ }
+ }
/*
* Retrieve configuration information for the receiver

Back to the top