Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-11-24 06:39:38 -0500
committerUwe Stieber2013-11-24 06:41:10 -0500
commit03fefdeb705cc20d4fd354538fab8b1e1fcb4b1a (patch)
treeedede93682ce241d8106199ccc52cc3a973b33d7
parent4c7bda0ef2f3a91c98914fe178eb555e6851abe7 (diff)
downloadorg.eclipse.tcf-03fefdeb705cc20d4fd354538fab8b1e1fcb4b1a.tar.gz
org.eclipse.tcf-03fefdeb705cc20d4fd354538fab8b1e1fcb4b1a.tar.xz
org.eclipse.tcf-03fefdeb705cc20d4fd354538fab8b1e1fcb4b1a.zip
Target Explorer: Adapt winpty support
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.process/src/org/eclipse/tcf/te/ui/terminals/process/ProcessConnector.java20
1 files changed, 1 insertions, 19 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.process/src/org/eclipse/tcf/te/ui/terminals/process/ProcessConnector.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.process/src/org/eclipse/tcf/te/ui/terminals/process/ProcessConnector.java
index d940327ae..8b380639d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.process/src/org/eclipse/tcf/te/ui/terminals/process/ProcessConnector.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.process/src/org/eclipse/tcf/te/ui/terminals/process/ProcessConnector.java
@@ -13,11 +13,9 @@ import java.io.File;
import java.io.IOException;
import java.io.StreamTokenizer;
import java.io.StringReader;
-import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.cdt.utils.Platform;
import org.eclipse.cdt.utils.pty.PTY;
import org.eclipse.cdt.utils.spawner.ProcessFactory;
import org.eclipse.core.runtime.Assert;
@@ -26,7 +24,6 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.osgi.util.NLS;
import org.eclipse.tcf.te.runtime.services.interfaces.constants.ILineSeparatorConstants;
import org.eclipse.tcf.te.runtime.utils.Env;
-import org.eclipse.tcf.te.runtime.utils.Host;
import org.eclipse.tcf.te.ui.terminals.process.activator.UIPlugin;
import org.eclipse.tcf.te.ui.terminals.process.nls.Messages;
import org.eclipse.tcf.te.ui.terminals.streams.AbstractStreamsConnector;
@@ -34,7 +31,6 @@ import org.eclipse.tm.internal.terminal.provisional.api.ISettingsPage;
import org.eclipse.tm.internal.terminal.provisional.api.ISettingsStore;
import org.eclipse.tm.internal.terminal.provisional.api.ITerminalControl;
import org.eclipse.tm.internal.terminal.provisional.api.TerminalState;
-import org.osgi.framework.Bundle;
/**
* Process connector implementation.
@@ -106,21 +102,7 @@ public class ProcessConnector extends AbstractStreamsConnector {
if (process == null) {
if (PTY.isSupported()) {
try {
- // On Windows host, try to load the "WinPTY" extension.
- // Use reflection to make this work still with older CDT core packages
- if (Host.isWindowsHost()) {
- Bundle bundle = Platform.getBundle("org.eclipse.cdt.core"); //$NON-NLS-1$
- if (bundle != null) {
- try {
- Class<?> clazz = bundle.loadClass("org.eclipse.cdt.utils.pty.WinPTY"); //$NON-NLS-1$
- Constructor<?> constructor = clazz.getConstructor(boolean.class);
- pty = (PTY)constructor.newInstance(Boolean.FALSE);
- }
- catch (Exception e) { /* ignored on purpose */ }
- }
- } else {
- pty = new PTY(false);
- }
+ pty = new PTY(false);
} catch (IOException e) {
// PTY not supported
}

Back to the top