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

    myPrimaryConsoleView.attachToProcess(processHandler);
    mySecondaryConsoleView.attachToProcess(processHandler);
  }
Example #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);
  }
Example #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);
  }
Example #4
0
 @Override
 public void allowHeavyFilters() {
   myPrimaryConsoleView.allowHeavyFilters();
 }
Example #5
0
 @Override
 public int getContentSize() {
   return myPrimaryConsoleView.getContentSize();
 }
Example #6
0
 @Override
 public void printHyperlink(String hyperlinkText, HyperlinkInfo info) {
   myPrimaryConsoleView.printHyperlink(hyperlinkText, info);
   mySecondaryConsoleView.printHyperlink(hyperlinkText, info);
 }
Example #7
0
 @Override
 public void addMessageFilter(Filter filter) {
   myPrimaryConsoleView.addMessageFilter(filter);
   mySecondaryConsoleView.addMessageFilter(filter);
 }
Example #8
0
 @Override
 public void setHelpId(String helpId) {
   myPrimaryConsoleView.setHelpId(helpId);
   mySecondaryConsoleView.setHelpId(helpId);
 }
Example #9
0
 @Override
 public boolean hasDeferredOutput() {
   return myPrimaryConsoleView.hasDeferredOutput() && mySecondaryConsoleView.hasDeferredOutput();
 }
Example #10
0
 @Override
 public void setOutputPaused(boolean value) {
   myPrimaryConsoleView.setOutputPaused(value);
   mySecondaryConsoleView.setOutputPaused(value);
 }
Example #11
0
 @Override
 public void scrollTo(int offset) {
   myPrimaryConsoleView.scrollTo(offset);
   mySecondaryConsoleView.scrollTo(offset);
 }
Example #12
0
 @Override
 public void clear() {
   myPrimaryConsoleView.clear();
   mySecondaryConsoleView.clear();
 }
Example #13
0
 @Override
 public void print(@NotNull String s, @NotNull ConsoleViewContentType contentType) {
   myPrimaryConsoleView.print(s, contentType);
   mySecondaryConsoleView.print(s, contentType);
 }