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

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