Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-02-10 08:07:49 -0500
committerUwe Stieber2015-02-10 08:07:49 -0500
commit15864f555dd5b70b485484d1c1f61b2a5fe09f58 (patch)
tree0a2e5397f6481b32161289e3ac8ac752749dc071
parent6abd600ff1c80220860a10b576544b6d5a3a9b43 (diff)
downloadorg.eclipse.tcf-15864f555dd5b70b485484d1c1f61b2a5fe09f58.tar.gz
org.eclipse.tcf-15864f555dd5b70b485484d1c1f61b2a5fe09f58.tar.xz
org.eclipse.tcf-15864f555dd5b70b485484d1c1f61b2a5fe09f58.zip
Terminals: Fix terminal service not loaded on Linux hosts
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.core.terminals/src/org/eclipse/tcf/te/core/terminals/TerminalServiceFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.core.terminals/src/org/eclipse/tcf/te/core/terminals/TerminalServiceFactory.java b/target_explorer/plugins/org.eclipse.tcf.te.core.terminals/src/org/eclipse/tcf/te/core/terminals/TerminalServiceFactory.java
index 601e2149d..4b5eba9c9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.core.terminals/src/org/eclipse/tcf/te/core/terminals/TerminalServiceFactory.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.core.terminals/src/org/eclipse/tcf/te/core/terminals/TerminalServiceFactory.java
@@ -29,7 +29,7 @@ public final class TerminalServiceFactory {
// Tries to instantiate the terminal service implementation
// from the o.e.tcf.te.ui.terminals bundle
Bundle bundle = Platform.getBundle("org.eclipse.tcf.te.ui.terminals"); //$NON-NLS-1$
- if (bundle != null && (bundle.getState() == Bundle.RESOLVED || bundle.getState() == Bundle.ACTIVE)) {
+ if (bundle != null && bundle.getState() != Bundle.UNINSTALLED && bundle.getState() != Bundle.STOPPING) {
try {
Class<?> clazz = bundle.loadClass("org.eclipse.tcf.te.ui.terminals.services.TerminalService"); //$NON-NLS-1$
instance = (ITerminalService) clazz.newInstance();

Back to the top