当前位置: 首页>>代码示例>>Java>>正文


Java ProcessOutputTypes.SYSTEM属性代码示例

本文整理汇总了Java中com.intellij.execution.process.ProcessOutputTypes.SYSTEM属性的典型用法代码示例。如果您正苦于以下问题:Java ProcessOutputTypes.SYSTEM属性的具体用法?Java ProcessOutputTypes.SYSTEM怎么用?Java ProcessOutputTypes.SYSTEM使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.execution.process.ProcessOutputTypes的用法示例。


在下文中一共展示了ProcessOutputTypes.SYSTEM属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

@Override
protected void setUp() throws Exception {
  super.setUp();

  mySplitter = new OutputLineSplitter(false) {
    @Override
    protected void onLineAvailable(@NotNull String text, @NotNull Key outputType, boolean tcLikeFakeOutput) {
      if (ProcessOutputTypes.STDERR != outputType && ProcessOutputTypes.SYSTEM != outputType) outputType = ProcessOutputTypes.STDOUT;
      synchronized (myOutput) {
        List<String> list = myOutput.get(outputType);
        if (list == null) {
          myOutput.put(outputType, list = new ArrayList<String>());
        }
        list.add(text);
      }
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:OutputLineSplitterTest.java

示例2: notifyTextAvailable

public void notifyTextAvailable(final String text, final Key outputType) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("Received from groovyc " + outputType + ": " + text);
  }

  if (outputType == ProcessOutputTypes.SYSTEM) {
    return;
  }

  if (outputType == ProcessOutputTypes.STDERR && !isSafeStderr(text)) {
    stdErr.append(StringUtil.convertLineSeparators(text));
    return;
  }


  parseOutput(text);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:GroovycOutputParser.java

示例3: notifyTextAvailable

public void notifyTextAvailable(final String text, final Key outputType) {
  super.notifyTextAvailable(text, outputType);

  if (LOG.isDebugEnabled()) {
    LOG.debug("Received from groovyc: " + text);
  }

  if (outputType == ProcessOutputTypes.SYSTEM) {
    return;
  }

  if (outputType == ProcessOutputTypes.STDERR) {
    stdErr.append(StringUtil.convertLineSeparators(text));
    return;
  }


  parseOutput(text);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:19,代码来源:GroovycOSProcessHandler.java

示例4: setUp

@Override
protected void setUp() throws Exception {
  super.setUp();

  mySplitter = new OutputLineSplitter(false) {
    @Override
    protected void onLineAvailable(@Nonnull String text, @Nonnull Key outputType, boolean tcLikeFakeOutput) {
      if (ProcessOutputTypes.STDERR != outputType && ProcessOutputTypes.SYSTEM != outputType) outputType = ProcessOutputTypes.STDOUT;
      synchronized (myOutput) {
        List<String> list = myOutput.get(outputType);
        if (list == null) {
          myOutput.put(outputType, list = new ArrayList<String>());
        }
        list.add(text);
      }
    }
  };
}
 
开发者ID:consulo,项目名称:consulo,代码行数:18,代码来源:OutputLineSplitterTest.java

示例5: onTextAvailable

@Override
public void onTextAvailable(ProcessEvent event, Key outputType) {
  if (outputType == ProcessOutputTypes.STDERR) {
    err.append(event.getText());
  }
  else if (outputType == ProcessOutputTypes.SYSTEM) {
    // skip
  }
  else {
    out.append(event.getText());
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:OutputListener.java

示例6: outputTypeForAttributes

public ConsoleViewContentType outputTypeForAttributes(Key attributes) {
  final ConsoleViewContentType outputType;
  if (attributes == ProcessOutputTypes.STDERR) {
    outputType = ConsoleViewContentType.ERROR_OUTPUT;
  }
  else if (attributes == ProcessOutputTypes.SYSTEM) {
    outputType = ConsoleViewContentType.SYSTEM_OUTPUT;
  }
  else {
    outputType = ConsoleViewContentType.getConsoleViewType(attributes);
  }

  return outputType;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:PythonConsoleView.java

示例7: onTextAvailable

/**
 * Handles single output line.
 *
 * @param text       execution response
 * @param outputType output type
 */
public void onTextAvailable(@NotNull String text, @NotNull Key outputType) {
    if (outputType == ProcessOutputTypes.SYSTEM) {
        return;
    }

    if (outputType == ProcessOutputTypes.STDERR) {
        errorsReported = true;
        return;
    }

    ContainerUtil.addIfNotNull(outputs, parseOutput(StringUtil.trimEnd(text, "\n").trim()));
}
 
开发者ID:hsz,项目名称:idea-gitignore,代码行数:18,代码来源:ExecutionOutputParser.java


注:本文中的com.intellij.execution.process.ProcessOutputTypes.SYSTEM属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。