Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-12-12 22:18:49 +0000
committerslewis2007-12-12 22:18:49 +0000
commitef9774303685886a1f10c65566b9586669d64764 (patch)
tree14a6906dcbc46d0f8ccfc86239ac0aabf1409617 /providers
parent39ce1dde0c7bae94485ac9d4560c62475f7e6df8 (diff)
downloadorg.eclipse.ecf-ef9774303685886a1f10c65566b9586669d64764.tar.gz
org.eclipse.ecf-ef9774303685886a1f10c65566b9586669d64764.tar.xz
org.eclipse.ecf-ef9774303685886a1f10c65566b9586669d64764.zip
Fix for loadProtocolHandlers in activator
Diffstat (limited to 'providers')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java
index f7f658e5b..c6004a5e4 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java
@@ -141,8 +141,14 @@ public class Activator implements BundleActivator {
proxyServiceTracker = null;
}
this.context = null;
- this.retrieveFileTransferProtocolMap = null;
- this.sendFileTransferProtocolMap = null;
+ if (this.retrieveFileTransferProtocolMap != null) {
+ this.retrieveFileTransferProtocolMap.clear();
+ this.retrieveFileTransferProtocolMap = null;
+ }
+ if (this.sendFileTransferProtocolMap != null) {
+ this.sendFileTransferProtocolMap.clear();
+ this.sendFileTransferProtocolMap = null;
+ }
}
/**
@@ -193,7 +199,7 @@ public class Activator implements BundleActivator {
this.sendFileTransferProtocolMap = new HashMap(3);
final IExtensionRegistry reg = getExtensionRegistry();
if (reg != null) {
- final String[] existingSchemes = getPlatformSupportedSchemes();
+ String[] existingSchemes = getPlatformSupportedSchemes();
final IExtensionPoint retrieveExtensionPoint = reg.getExtensionPoint(RETRIEVE_FILETRANSFER_PROTOCOL_FACTORY_EPOINT);
if (retrieveExtensionPoint == null)
return;
@@ -224,6 +230,7 @@ public class Activator implements BundleActivator {
return;
}
final IConfigurationElement[] sendConfigurationElements = sendExtensionPoint.getConfigurationElements();
+ existingSchemes = getPlatformSupportedSchemes();
for (int i = 0; i < sendConfigurationElements.length; i++) {
try {
final String protocol = sendConfigurationElements[i].getAttribute(PROTOCOL_ATTR);

Back to the top