Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:29:42 +0000
committerslewis2007-04-20 22:29:42 +0000
commit7ac9e04ed369f09c30c28f80110f77b2502de840 (patch)
treec6b1fa35353f22f72a713b60613abe325b1f2460
parent7458633004db4095607bb63a92281dd19d574f13 (diff)
downloadorg.eclipse.ecf-7ac9e04ed369f09c30c28f80110f77b2502de840.tar.gz
org.eclipse.ecf-7ac9e04ed369f09c30c28f80110f77b2502de840.tar.xz
org.eclipse.ecf-7ac9e04ed369f09c30c28f80110f77b2502de840.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/src/org/eclipse/ecf/internal/provider/filetransfer/Activator.java5
1 files changed, 4 insertions, 1 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 9f0caf80d..4d674c8f6 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
@@ -138,7 +138,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