Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:29:41 +0000
committerslewis2007-04-20 22:29:41 +0000
commit7458633004db4095607bb63a92281dd19d574f13 (patch)
treeff590fb28796f885cb41445ca4ce805ba368f8cd
parent4e12a64c8b980f2f6141ab4431e0b638cd9f7d0f (diff)
downloadorg.eclipse.ecf-7458633004db4095607bb63a92281dd19d574f13.tar.gz
org.eclipse.ecf-7458633004db4095607bb63a92281dd19d574f13.tar.xz
org.eclipse.ecf-7458633004db4095607bb63a92281dd19d574f13.zip
Changes to have all activator classes return non-null with calls to getDefault(), even in non-OSGi environments
-rw-r--r--framework/bundles/org.eclipse.ecf.filetransfer/src/org/eclipse/ecf/internal/filetransfer/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.filetransfer/src/org/eclipse/ecf/internal/filetransfer/Activator.java b/framework/bundles/org.eclipse.ecf.filetransfer/src/org/eclipse/ecf/internal/filetransfer/Activator.java
index d03655082..9eb673d77 100644
--- a/framework/bundles/org.eclipse.ecf.filetransfer/src/org/eclipse/ecf/internal/filetransfer/Activator.java
+++ b/framework/bundles/org.eclipse.ecf.filetransfer/src/org/eclipse/ecf/internal/filetransfer/Activator.java
@@ -143,7 +143,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