@Override
 public <F extends Facet> void addListener(
     final Class<F> facetClass, final FacetPointerListener<F> listener) {
   EventDispatcher<FacetPointerListener> dispatcher = myDispatchers.get(facetClass);
   if (dispatcher == null) {
     dispatcher = EventDispatcher.create(FacetPointerListener.class);
     myDispatchers.put(facetClass, dispatcher);
   }
   dispatcher.addListener(listener);
 }
예제 #2
0
 public void addListener(LineProcessEventListener listener) {
   myLineListeners.addListener(listener);
   super.addListener(listener);
 }
 @Override
 public void addDebuggerManagerListener(DebuggerManagerListener listener) {
   myDispatcher.addListener(listener);
 }
 @Override
 public void addListener(ColorAndFontSettingsListener listener) {
   myDispatcher.addListener(listener);
 }
 @Override
 public void addListener(Listener listener, Disposable parentDisposable) {
   myDispatcher.addListener(listener, parentDisposable);
 }
 public void addListener(ChangeListener changeListener) {
   myEventDispatcher.addListener(changeListener);
 }
예제 #7
0
 public void addUpdateListener(UpdateListener listener) {
   myEventDispatcher.addListener(listener);
 }
예제 #8
0
 public void addApplicationListener(@NotNull ApplicationListener l) {
   myDispatcher.addListener(l);
 }
 @Override
 public void addListener(final WindowManagerListener listener) {
   myEventDispatcher.addListener(listener);
 }
 public void addDomEventListener(DomEventListener listener, Disposable parentDisposable) {
   myListeners.addListener(listener, parentDisposable);
 }
 public static void addModalityStateListener(
     @NotNull ModalityStateListener listener, @NotNull Disposable parentDisposable) {
   if (!ourModalityStateMulticaster.getListeners().contains(listener)) {
     ourModalityStateMulticaster.addListener(listener, parentDisposable);
   }
 }
예제 #12
0
 @Override
 public void addModelRootEntryListener(ModelRootEntryListener listener) {
   myEventDispatcher.addListener(listener);
 }
예제 #13
0
 /**
  * Add listener
  *
  * @param listener a listener to add
  */
 public void addLineListener(LineHandlerListener listener) {
   super.addListener(listener);
   myLineListeners.addListener(listener);
 }
 @Override
 public void addTaskListener(TaskListener listener) {
   myDispatcher.addListener(listener);
 }
 final void addInternalDecoratorListener(InternalDecoratorListener l) {
   myDispatcher.addListener(l);
 }
 public void addSelectedListChangeListener(SelectedListChangeListener listener) {
   myDispatcher.addListener(listener);
 }
 public void addBreakpointManagerListener(@NotNull BreakpointManagerListener listener) {
   myDispatcher.addListener(listener);
 }
 // we allow add listeners inside DebuggerContextListener.changeEvent
 public void addListener(DebuggerContextListener listener) {
   myEventDispatcher.addListener(listener);
 }
예제 #19
0
 public void addApplicationListener(@NotNull ApplicationListener l, @NotNull Disposable parent) {
   myDispatcher.addListener(l, parent);
 }
예제 #20
0
 /**
  * @deprecated use {@link UISettings#addUISettingsListener(com.intellij.ide.ui.UISettingsListener,
  *     Disposable disposable)} instead.
  */
 public void addUISettingsListener(UISettingsListener listener) {
   myDispatcher.addListener(listener);
 }
 public void addProjectSettingsListener(ProjectSettingsListener listener) {
   dispatcher.addListener(listener);
 }
예제 #22
0
 public void addUISettingsListener(
     @NotNull final UISettingsListener listener, @NotNull Disposable parentDisposable) {
   myDispatcher.addListener(listener, parentDisposable);
 }
 public void addListener(OrderPanelListener listener) {
   myListeners.addListener(listener);
 }
예제 #24
0
 public void addListener(final ProcessEventListener listener) {
   synchronized (myLock) {
     myListeners.addListener(listener);
   }
 }