@Override public IStreamsProxy getStreamsProxy() { return new IStreamsProxy() { @Override public void write(String input) throws IOException { } @Override public IStreamMonitor getErrorStreamMonitor() { return errorStream; } @Override public IStreamMonitor getOutputStreamMonitor() { return outputStream; } }; }
/** * Checks and forwards an error from the specified process * * @param process * @throws CoreException */ private void checkErrorMessage( IProcess process ) throws CoreException { IStreamsProxy streamsProxy = process.getStreamsProxy( ); if ( streamsProxy != null ) { String errorMessage = streamsProxy.getErrorStreamMonitor( ) .getContents( ); if ( errorMessage.length( ) == 0 ) { errorMessage = streamsProxy.getOutputStreamMonitor( ) .getContents( ); } if ( errorMessage.length( ) != 0 ) { abort( errorMessage, null, IJavaLaunchConfigurationConstants.ERR_VM_LAUNCH_ERROR ); } } }
protected void checkErrorMessage(IProcess process) throws CoreException { IStreamsProxy streamsProxy = process.getStreamsProxy(); if (streamsProxy != null) { String errorMessage = streamsProxy.getErrorStreamMonitor() .getContents(); if (errorMessage.length() == 0) { errorMessage = streamsProxy.getOutputStreamMonitor() .getContents(); } if (errorMessage.length() != 0) { abort(errorMessage, null, IJavaLaunchConfigurationConstants.ERR_VM_LAUNCH_ERROR); } } }
@Override protected IStreamsProxy createStreamsProxy() { return super.createStreamsProxy(); }
@Override public IStreamsProxy getStreamsProxy() { return null; }
@Override public IStreamsProxy getStreamsProxy() { return streamProxy; }
public IStreamsProxy getStreamsProxy() { return null; }
@Override public IStreamsProxy getStreamsProxy() { return this.proxy; }
public IStreamsProxy getStreamsProxy() { return streamsProxy; }
/** * PydevSpawnedInterpreterProcess handles the IO in a custom way, so we don't * use the streams proxy. */ @Override protected IStreamsProxy createStreamsProxy() { // do nothing return null; }
@Override public IStreamsProxy getStreamsProxy() { return streamsProxy; }