Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 22:29:52 +0000
committerslewis2007-04-20 22:29:52 +0000
commitc0dbf1580d27b95764eecbae12986bc2712732f2 (patch)
tree479c6d155e5486b8e4f10f8584dae1e90e210f77
parentcc6fbca524b07c853bff3a8a80f74ca8c55485b9 (diff)
downloadorg.eclipse.ecf-c0dbf1580d27b95764eecbae12986bc2712732f2.tar.gz
org.eclipse.ecf-c0dbf1580d27b95764eecbae12986bc2712732f2.tar.xz
org.eclipse.ecf-c0dbf1580d27b95764eecbae12986bc2712732f2.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.telephony.call.ui/src/org/eclipse/ecf/internal/telephony/call/ui/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.telephony.call.ui/src/org/eclipse/ecf/internal/telephony/call/ui/Activator.java b/framework/bundles/org.eclipse.ecf.telephony.call.ui/src/org/eclipse/ecf/internal/telephony/call/ui/Activator.java
index 6ae386998..f2eddcb4e 100644
--- a/framework/bundles/org.eclipse.ecf.telephony.call.ui/src/org/eclipse/ecf/internal/telephony/call/ui/Activator.java
+++ b/framework/bundles/org.eclipse.ecf.telephony.call.ui/src/org/eclipse/ecf/internal/telephony/call/ui/Activator.java
@@ -39,7 +39,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