Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-09-10 04:58:21 -0400
committerUwe Stieber2012-09-10 04:58:21 -0400
commit968b374db20ad4b7c3e2619b5c059bab93794bfe (patch)
tree77960e1830d1182cfc95c4004e4b17e8bed62e70 /target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core
parent78c4281028f56e63cb7d624619eab3e34fae0adc (diff)
downloadorg.eclipse.tcf-968b374db20ad4b7c3e2619b5c059bab93794bfe.tar.gz
org.eclipse.tcf-968b374db20ad4b7c3e2619b5c059bab93794bfe.tar.xz
org.eclipse.tcf-968b374db20ad4b7c3e2619b5c059bab93794bfe.zip
Target Explorer: Extended process launcher to use terminal based process I/O redirection if the target is supporting IProcessesV1
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/interfaces/launcher/IProcessLauncher.java4
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessStreamsListener.java8
3 files changed, 9 insertions, 5 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/interfaces/launcher/IProcessLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/interfaces/launcher/IProcessLauncher.java
index 5c69d4bbc..9f1087051 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/interfaces/launcher/IProcessLauncher.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/interfaces/launcher/IProcessLauncher.java
@@ -103,6 +103,10 @@ public interface IProcessLauncher extends IAdaptable {
/**
* Launch a remote process defined by the given launch properties at the target specified by the
* given peer.
+ * <p>
+ * <b>Note:</b> If the target is supporting the extended process service (IProcessesV1), than the
+ * <code>IProcessesV1.START_*</code> launch parameter will passed on to the extended process service
+ * launch command if and as set in <code>params</code>.
*
* @param peer The peer. Must not be <code>null</code>.
* @param params The remote process properties. Must not be <code>null</code>.
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
index cfd578fcd..f9a5f071a 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
@@ -410,7 +410,7 @@ public class ProcessLauncher extends PlatformObject implements IProcessLauncher
// Get the process and streams services. Try the V1 processes service first
// before falling back to the standard processes service.
-// svcProcesses = channel.getRemoteService(IProcessesV1.class);
+ svcProcesses = channel.getRemoteService(IProcessesV1.class);
if (svcProcesses == null) svcProcesses = channel.getRemoteService(IProcesses.class);
if (svcProcesses == null) {
IStatus status = new Status(IStatus.ERROR, CoreBundleActivator.getUniqueIdentifier(),
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessStreamsListener.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessStreamsListener.java
index 6b8ced6d8..ed568f452 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessStreamsListener.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessStreamsListener.java
@@ -765,8 +765,8 @@ public class ProcessStreamsListener implements IStreams.StreamsListener, IProces
*/
@Override
public void created(String streamType, String streamId, String contextId) {
- // We ignore any other stream type than IProcesses.NAME
- if (!IProcesses.NAME.equals(streamType)) return;
+ // We ignore any other stream type than the associated process service name
+ if (!svcProcessesName.equals(streamType)) return;
if (CoreBundleActivator.getTraceHandler().isSlotEnabled(0, ITraceIds.TRACE_STREAMS_LISTENER)) {
CoreBundleActivator.getTraceHandler().trace("New remote process stream created: streamId='" + streamId + "', contextId='" + contextId + "'", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
@@ -836,8 +836,8 @@ public class ProcessStreamsListener implements IStreams.StreamsListener, IProces
*/
@Override
public void disposed(String streamType, String streamId) {
- // We ignore any other stream type than IProcesses.NAME
- if (!IProcesses.NAME.equals(streamType)) return;
+ // We ignore any other stream type than the associated process service name
+ if (!svcProcessesName.equals(streamType)) return;
if (CoreBundleActivator.getTraceHandler().isSlotEnabled(0, ITraceIds.TRACE_STREAMS_LISTENER)) {
CoreBundleActivator.getTraceHandler().trace("Remote process stream disposed: streamId='" + streamId + "'", //$NON-NLS-1$ //$NON-NLS-2$

Back to the top