Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:29:54 +0000
committerslewis2007-04-20 22:29:54 +0000
commit9c8c7f80201f6b78c64804bdaea9d084afb2e919 (patch)
tree654e0a2d6511b97e182eafbf30b06ac63816568a
parent91bd6b7337b28021a3c57cedd6eec4b0a163497f (diff)
downloadorg.eclipse.ecf-9c8c7f80201f6b78c64804bdaea9d084afb2e919.tar.gz
org.eclipse.ecf-9c8c7f80201f6b78c64804bdaea9d084afb2e919.tar.xz
org.eclipse.ecf-9c8c7f80201f6b78c64804bdaea9d084afb2e919.zip
Changes to have all activator classes return non-null with calls to getDefault(), even in non-OSGi environments
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/internal/provider/filetransfer/httpclient/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/internal/provider/filetransfer/httpclient/Activator.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/internal/provider/filetransfer/httpclient/Activator.java
index 5160efd50..4435a94f2 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/internal/provider/filetransfer/httpclient/Activator.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/internal/provider/filetransfer/httpclient/Activator.java
@@ -52,7 +52,10 @@ public class Activator implements BundleActivator {
*
* @return the shared instance
*/
- public static Activator getDefault() {
+ public synchronized static Activator getDefault() {
+ if (plugin == null) {
+ plugin = new Activator();
+ }
return plugin;
}

Back to the top