예제 #1
0
  @Override
  public void attachToProcess(ProcessHandler processHandler) {
    myProcessHandler = processHandler;

    myPrimaryConsoleView.attachToProcess(processHandler);
    mySecondaryConsoleView.attachToProcess(processHandler);
  }
예제 #2
0
  @NotNull
  @Override
  public AnAction[] createConsoleActions() {
    List<AnAction> actions = Lists.newArrayList();
    actions.addAll(Arrays.asList(myPrimaryConsoleView.createConsoleActions()));

    actions.add(mySwitchConsoleAction);

    return ArrayUtil.toObjectArray(actions, AnAction.class);
  }
예제 #3
0
  public DuplexConsoleView(
      @NotNull S primaryConsoleView,
      @NotNull T secondaryConsoleView,
      @Nullable String stateStorageKey) {
    super(new CardLayout());
    myPrimaryConsoleView = primaryConsoleView;
    mySecondaryConsoleView = secondaryConsoleView;
    myStateStorageKey = stateStorageKey;

    add(myPrimaryConsoleView.getComponent(), PRIMARY_CONSOLE_PANEL);
    add(mySecondaryConsoleView.getComponent(), SECONDARY_CONSOLE_PANEL);

    mySwitchConsoleAction = new SwitchDuplexConsoleViewAction();

    myPrimary = true;
    enableConsole(getStoredState());

    Disposer.register(this, myPrimaryConsoleView);
    Disposer.register(this, mySecondaryConsoleView);
  }
예제 #4
0
 @Override
 public void allowHeavyFilters() {
   myPrimaryConsoleView.allowHeavyFilters();
 }
예제 #5
0
 @Override
 public int getContentSize() {
   return myPrimaryConsoleView.getContentSize();
 }
예제 #6
0
 @Override
 public void printHyperlink(String hyperlinkText, HyperlinkInfo info) {
   myPrimaryConsoleView.printHyperlink(hyperlinkText, info);
   mySecondaryConsoleView.printHyperlink(hyperlinkText, info);
 }
예제 #7
0
 @Override
 public void addMessageFilter(Filter filter) {
   myPrimaryConsoleView.addMessageFilter(filter);
   mySecondaryConsoleView.addMessageFilter(filter);
 }
예제 #8
0
 @Override
 public void setHelpId(String helpId) {
   myPrimaryConsoleView.setHelpId(helpId);
   mySecondaryConsoleView.setHelpId(helpId);
 }
예제 #9
0
 @Override
 public boolean hasDeferredOutput() {
   return myPrimaryConsoleView.hasDeferredOutput() && mySecondaryConsoleView.hasDeferredOutput();
 }
예제 #10
0
 @Override
 public void setOutputPaused(boolean value) {
   myPrimaryConsoleView.setOutputPaused(value);
   mySecondaryConsoleView.setOutputPaused(value);
 }
예제 #11
0
 @Override
 public void scrollTo(int offset) {
   myPrimaryConsoleView.scrollTo(offset);
   mySecondaryConsoleView.scrollTo(offset);
 }
예제 #12
0
 @Override
 public void clear() {
   myPrimaryConsoleView.clear();
   mySecondaryConsoleView.clear();
 }
예제 #13
0
 @Override
 public void print(@NotNull String s, @NotNull ConsoleViewContentType contentType) {
   myPrimaryConsoleView.print(s, contentType);
   mySecondaryConsoleView.print(s, contentType);
 }