if(this.stream)
this.c_streamer.setStream(p.getStreamsProxy().getOutputStreamMonitor());
ProcessExitHandler ph = new ProcessExitHandler(process);
ph.addListener(new IProcessExitListener() {
@Override
public void processFinished() {
if(stream)
c_streamer.removeStreamMonitor();
dispatcher.fireLaunchEnd(prj);
XVRUtils.setDebugSession(false);
}
});
ph.start();
if(mode.equals(org.eclipse.debug.core.ILaunchManager.DEBUG_MODE)){
IDebugTarget target = new XVRDebugTarget(launch, p, commandPort, eventPort, ph);
launch.addDebugTarget(target);
}