Java 类org.eclipse.debug.core.model.IStreamsProxy 实例源码

项目:eclipse-plugin    文件:CodenvyRunnerProcess.java   
@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;
        }
    };
}
项目:eclipse-plugin    文件:CodenvyBuilderProcess.java   
@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;
        }
    };
}
项目:birt    文件:StandardScriptVMRunner.java   
/**
 * 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 );
        }
    }
}
项目:freeVM    文件:HyDebugVMRunner.java   
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);
        }
    }
}
项目:egradle    文件:EGradleRuntimeProcess.java   
@Override
protected IStreamsProxy createStreamsProxy() {
    return super.createStreamsProxy();
}
项目:google-cloud-eclipse    文件:SocketListenMultiConnectorProcess.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return null;
}
项目:uml2solidity    文件:GenerateUml2Solidity.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return null;
}
项目:turnus    文件:TurnusProcess.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return streamProxy;
}
项目:tlaplus    文件:TLCModelLaunchDelegate.java   
public IStreamsProxy getStreamsProxy() {
    return null;
}
项目:monto-eclipse    文件:MontoProcess.java   
@Override
public IStreamsProxy getStreamsProxy() {
  return streamProxy;
}
项目:brainfuck    文件:BfProcess.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return this.proxy;
}
项目:chromedevtools    文件:ConsolePseudoProcess.java   
public IStreamsProxy getStreamsProxy() {
  return streamsProxy;
}
项目:txtUML    文件:RuntimeSessionTrackerTest.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return null;
}
项目:robovm-eclipse    文件:AbstractJUnitLaunchConfigurationDelegate.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return null;
}
项目:Pydev    文件:PydevSpawnedInterpreterProcess.java   
/**
 * PydevSpawnedInterpreterProcess handles the IO in a custom way, so we don't
 * use the streams proxy.
 */
@Override
protected IStreamsProxy createStreamsProxy() {
    // do nothing
    return null;
}
项目:teavm    文件:TeaVMDebugProcess.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return streamsProxy;
}
项目:launchpi    文件:RemoteProcess.java   
@Override
public IStreamsProxy getStreamsProxy() {
    return streamsProxy;
}