Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:30:09 +0000
committerslewis2007-04-20 22:30:09 +0000
commitd737be8c94bfe42124eb0ac3b4619523b1b2ff5f (patch)
tree972694d2c2102e19066d2495ebd79f729733fa6e
parentb27a3512d952c1a3a266a29164c420aa8e0c3581 (diff)
downloadorg.eclipse.ecf-d737be8c94bfe42124eb0ac3b4619523b1b2ff5f.tar.gz
org.eclipse.ecf-d737be8c94bfe42124eb0ac3b4619523b1b2ff5f.tar.xz
org.eclipse.ecf-d737be8c94bfe42124eb0ac3b4619523b1b2ff5f.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.ui/src/org/eclipse/ecf/internal/provider/ui/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.ui/src/org/eclipse/ecf/internal/provider/ui/Activator.java b/providers/bundles/org.eclipse.ecf.provider.ui/src/org/eclipse/ecf/internal/provider/ui/Activator.java
index 90627533f..8a915e5bc 100644
--- a/providers/bundles/org.eclipse.ecf.provider.ui/src/org/eclipse/ecf/internal/provider/ui/Activator.java
+++ b/providers/bundles/org.eclipse.ecf.provider.ui/src/org/eclipse/ecf/internal/provider/ui/Activator.java
@@ -43,7 +43,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