Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2010-09-11 20:28:03 -0400
committerslewis2010-09-11 20:28:03 -0400
commit8c7b7abb4d41505ee41c5d283059f0fa7d61a9e1 (patch)
treece4029beda8a6b31a862f8d61a1c68b3cb51fa11
parent44cfa5dd9fa16053da75ceaaf68712afa1b398c8 (diff)
downloadorg.eclipse.ecf-8c7b7abb4d41505ee41c5d283059f0fa7d61a9e1.tar.gz
org.eclipse.ecf-8c7b7abb4d41505ee41c5d283059f0fa7d61a9e1.tar.xz
org.eclipse.ecf-8c7b7abb4d41505ee41c5d283059f0fa7d61a9e1.zip
changes to support running outside of OSGi context.
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java
index 344a29f9d..7604c3824 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java
@@ -205,8 +205,11 @@ public class Activator implements BundleActivator {
}
protected synchronized LogService getLogService() {
- if (this.context == null)
- return null;
+ if (context == null) {
+ if (logService == null)
+ logService = new SystemLogService(PLUGIN_ID);
+ return logService;
+ }
if (logServiceTracker == null) {
logServiceTracker = new ServiceTracker(this.context,
LogService.class.getName(), null);

Back to the top