Exemplo n.º 1
0
 @Override
 public void addChangeListener(@NotNull ChangeListener listener, @NotNull Disposable parent) {
   if (myPrimaryConsoleView instanceof ObservableConsoleView) {
     ((ObservableConsoleView) myPrimaryConsoleView).addChangeListener(listener, parent);
   }
   if (mySecondaryConsoleView instanceof ObservableConsoleView) {
     ((ObservableConsoleView) mySecondaryConsoleView).addChangeListener(listener, parent);
   }
 }
Exemplo n.º 2
0
 public void addChangeListener(final ChangeListener listener, final Disposable parent) {
   if (myConsole instanceof ObservableConsoleView) {
     ((ObservableConsoleView) myConsole).addChangeListener(listener, parent);
   } else {
     throw new UnsupportedOperationException(myConsole.getClass().getName());
   }
 }