Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2006-04-03 16:09:06 +0000
committerslewis2006-04-03 16:09:06 +0000
commit61b3194111cd4bc5df34b68bfeae0f61181fbe21 (patch)
tree8748c5417f09af017c2af88f195f4975485fede4
parent73d25be9318afc2460e6fb2421a1798b9714ee37 (diff)
downloadorg.eclipse.ecf-61b3194111cd4bc5df34b68bfeae0f61181fbe21.tar.gz
org.eclipse.ecf-61b3194111cd4bc5df34b68bfeae0f61181fbe21.tar.xz
org.eclipse.ecf-61b3194111cd4bc5df34b68bfeae0f61181fbe21.zip
Fix for bug 134483
-rw-r--r--framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ContainerFactory.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ContainerFactory.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ContainerFactory.java
index 9cb96dbb2..9bf3b716d 100644
--- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ContainerFactory.java
+++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ContainerFactory.java
@@ -52,10 +52,14 @@ public class ContainerFactory implements IContainerFactory {
}
protected ContainerFactory() {
- ECFPlugin.getDefault().addDisposable(new IDisposable() {
- public void dispose() {
- doDispose();
- }});
+ try {
+ ECFPlugin.getDefault().addDisposable(new IDisposable() {
+ public void dispose() {
+ doDispose();
+ }});
+ } catch (Exception e) {
+ System.err.println("WARNING: Exception accessing ECFPlugin within ContainerFactory initialization. May not be running as OSGI bundle");
+ }
}
public static IContainerFactory getDefault() {

Back to the top