Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:29:50 +0000
committerslewis2007-04-20 22:29:50 +0000
commitcc6fbca524b07c853bff3a8a80f74ca8c55485b9 (patch)
treef191ac69dc04e55ff0e75e0e8930297bf0cac47e
parent04dfb9428863b6ba1cc8e8a7584bc7d451ace0a9 (diff)
downloadorg.eclipse.ecf-cc6fbca524b07c853bff3a8a80f74ca8c55485b9.tar.gz
org.eclipse.ecf-cc6fbca524b07c853bff3a8a80f74ca8c55485b9.tar.xz
org.eclipse.ecf-cc6fbca524b07c853bff3a8a80f74ca8c55485b9.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.msn.ui/src/org/eclipse/ecf/internal/provider/msn/ui/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.msn.ui/src/org/eclipse/ecf/internal/provider/msn/ui/Activator.java b/providers/bundles/org.eclipse.ecf.provider.msn.ui/src/org/eclipse/ecf/internal/provider/msn/ui/Activator.java
index e1fb02a32..86abf376d 100644
--- a/providers/bundles/org.eclipse.ecf.provider.msn.ui/src/org/eclipse/ecf/internal/provider/msn/ui/Activator.java
+++ b/providers/bundles/org.eclipse.ecf.provider.msn.ui/src/org/eclipse/ecf/internal/provider/msn/ui/Activator.java
@@ -53,7 +53,10 @@ public class Activator extends AbstractUIPlugin {
*
* @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