diff options
author | slewis | 2007-04-20 22:29:56 +0000 |
---|---|---|
committer | slewis | 2007-04-20 22:29:56 +0000 |
commit | 60c15ecf4300a91ed6b202b81ae94a25490f64ec (patch) | |
tree | d7717596664dad75aa6474acdb661beb48d6fd4b | |
parent | 861a87e791a686f73a98d92164eecc9c6fe9eaca (diff) | |
download | org.eclipse.ecf-60c15ecf4300a91ed6b202b81ae94a25490f64ec.tar.gz org.eclipse.ecf-60c15ecf4300a91ed6b202b81ae94a25490f64ec.tar.xz org.eclipse.ecf-60c15ecf4300a91ed6b202b81ae94a25490f64ec.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.ui/src/org/eclipse/ecf/internal/ui/Activator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/Activator.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/Activator.java index 596bf45cf..6994cb925 100644 --- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/Activator.java +++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/Activator.java @@ -84,7 +84,10 @@ public class Activator extends AbstractUIPlugin { /** * Returns the shared instance. */ - public static Activator getDefault() { + public synchronized static Activator getDefault() { + if (plugin == null) { + plugin = new Activator(); + } return plugin; } |