Java 类com.intellij.openapi.editor.impl.event.MarkupModelListener 实例源码

项目:intellij-ce-playground    文件:MarkupModelImpl.java   
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull final MarkupModelListener listener) {
  myListeners.add(listener);
  Disposer.register(parentDisposable, new Disposable() {
    @Override
    public void dispose() {
      removeMarkupModelListener(listener);
    }
  });
}
项目:intellij-ce-playground    文件:LanguageConsoleBuilder.java   
public GutterUpdateScheduler(@NotNull ConsoleGutterComponent lineStartGutter, @NotNull ConsoleGutterComponent lineEndGutter) {
  this.lineStartGutter = lineStartGutter;
  this.lineEndGutter = lineEndGutter;

  // console view can invoke markupModel.removeAllHighlighters(), so, we must be aware of it
  getHistoryViewer().getMarkupModel().addMarkupModelListener(GutteredLanguageConsole.this, new MarkupModelListener.Adapter() {
    @Override
    public void beforeRemoved(@NotNull RangeHighlighterEx highlighter) {
      if (lineSeparatorPainter == highlighter) {
        lineSeparatorPainter = null;
      }
    }
  });
}
项目:tools-idea    文件:MarkupModelImpl.java   
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull final MarkupModelListener listener) {
  myListeners.add(listener);
  Disposer.register(parentDisposable, new Disposable() {
    @Override
    public void dispose() {
      removeMarkupModelListener(listener);
    }
  });
}
项目:consulo    文件:MarkupModelImpl.java   
@Override
public void fireAttributesChanged(@Nonnull RangeHighlighterEx segmentHighlighter,
                                  boolean renderersChanged, boolean fontStyleOrColorChanged) {
  for (MarkupModelListener listener : myListeners) {
    listener.attributesChanged(segmentHighlighter, renderersChanged, fontStyleOrColorChanged);
  }
}
项目:consulo    文件:LanguageConsoleBuilder.java   
public GutterUpdateScheduler(@Nonnull ConsoleGutterComponent lineStartGutter, @Nonnull ConsoleGutterComponent lineEndGutter) {
  this.lineStartGutter = lineStartGutter;
  this.lineEndGutter = lineEndGutter;

  // console view can invoke markupModel.removeAllHighlighters(), so, we must be aware of it
  getHistoryViewer().getMarkupModel().addMarkupModelListener(GutteredLanguageConsole.this, new MarkupModelListener.Adapter() {
    @Override
    public void beforeRemoved(@Nonnull RangeHighlighterEx highlighter) {
      if (lineSeparatorPainter == highlighter) {
        lineSeparatorPainter = null;
      }
    }
  });
}
项目:intellij-ce-playground    文件:EmptyMarkupModel.java   
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) {
}
项目:intellij-ce-playground    文件:MarkupModelImpl.java   
void removeMarkupModelListener(@NotNull MarkupModelListener listener) {
  boolean success = myListeners.remove(listener);
  LOG.assertTrue(success);
}
项目:intellij-ce-playground    文件:MarkupModelImpl.java   
@Override
public void fireAttributesChanged(@NotNull RangeHighlighterEx segmentHighlighter, boolean renderersChanged) {
  for (MarkupModelListener listener : myListeners) {
    listener.attributesChanged(segmentHighlighter, renderersChanged);
  }
}
项目:intellij-ce-playground    文件:MarkupModelImpl.java   
@Override
public void fireAfterAdded(@NotNull RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.afterAdded(segmentHighlighter);
  }
}
项目:intellij-ce-playground    文件:MarkupModelImpl.java   
@Override
public void fireBeforeRemoved(@NotNull RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.beforeRemoved(segmentHighlighter);
  }
}
项目:intellij-ce-playground    文件:MarkupModelWindow.java   
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) {
  myHostModel.addMarkupModelListener(parentDisposable, listener);
}
项目:tools-idea    文件:EmptyMarkupModel.java   
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) {
}
项目:tools-idea    文件:MarkupModelImpl.java   
public void removeMarkupModelListener(@NotNull MarkupModelListener listener) {
  boolean success = myListeners.remove(listener);
  LOG.assertTrue(success);
}
项目:tools-idea    文件:MarkupModelImpl.java   
protected void fireAttributesChanged(RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.attributesChanged(segmentHighlighter);
  }
}
项目:tools-idea    文件:MarkupModelImpl.java   
private void fireAfterAdded(RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.afterAdded(segmentHighlighter);
  }
}
项目:tools-idea    文件:MarkupModelImpl.java   
void fireBeforeRemoved(RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.beforeRemoved(segmentHighlighter);
  }
}
项目:tools-idea    文件:MarkupModelWindow.java   
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) {
  myHostModel.addMarkupModelListener(parentDisposable, listener);
}
项目:consulo    文件:EmptyMarkupModel.java   
@Override
public void addMarkupModelListener(@Nonnull Disposable parentDisposable, @Nonnull MarkupModelListener listener) {
}
项目:consulo    文件:MarkupModelImpl.java   
@Override
public void addMarkupModelListener(@Nonnull Disposable parentDisposable, @Nonnull final MarkupModelListener listener) {
  myListeners.add(listener);
  Disposer.register(parentDisposable, () -> removeMarkupModelListener(listener));
}
项目:consulo    文件:MarkupModelImpl.java   
private void removeMarkupModelListener(@Nonnull MarkupModelListener listener) {
  boolean success = myListeners.remove(listener);
  LOG.assertTrue(success);
}
项目:consulo    文件:MarkupModelImpl.java   
@Override
public void fireAfterAdded(@Nonnull RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.afterAdded(segmentHighlighter);
  }
}
项目:consulo    文件:MarkupModelImpl.java   
@Override
public void fireBeforeRemoved(@Nonnull RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.beforeRemoved(segmentHighlighter);
  }
}
项目:consulo    文件:MarkupModelWindow.java   
@Override
public void addMarkupModelListener(@Nonnull Disposable parentDisposable, @Nonnull MarkupModelListener listener) {
  myHostModel.addMarkupModelListener(parentDisposable, listener);
}
项目:consulo    文件:EditorFilteringMarkupModelEx.java   
@Override
public void addMarkupModelListener(@Nonnull Disposable parentDisposable, @Nonnull MarkupModelListener listener) {
  myDelegate.addMarkupModelListener(parentDisposable, listener);
}
项目:intellij-ce-playground    文件:MarkupModelEx.java   
void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener);
项目:tools-idea    文件:MarkupModelEx.java   
void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener);
项目:consulo    文件:MarkupModelEx.java   
void addMarkupModelListener(@Nonnull Disposable parentDisposable, @Nonnull MarkupModelListener listener);