本文整理汇总了Java中com.intellij.openapi.editor.impl.event.MarkupModelListener类的典型用法代码示例。如果您正苦于以下问题:Java MarkupModelListener类的具体用法?Java MarkupModelListener怎么用?Java MarkupModelListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MarkupModelListener类属于com.intellij.openapi.editor.impl.event包,在下文中一共展示了MarkupModelListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addMarkupModelListener
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@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);
}
});
}
示例2: GutterUpdateScheduler
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
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;
}
}
});
}
示例3: fireAttributesChanged
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void fireAttributesChanged(@Nonnull RangeHighlighterEx segmentHighlighter,
boolean renderersChanged, boolean fontStyleOrColorChanged) {
for (MarkupModelListener listener : myListeners) {
listener.attributesChanged(segmentHighlighter, renderersChanged, fontStyleOrColorChanged);
}
}
示例4: GutterUpdateScheduler
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
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;
}
}
});
}
示例5: addMarkupModelListener
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) {
}
示例6: removeMarkupModelListener
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
void removeMarkupModelListener(@NotNull MarkupModelListener listener) {
boolean success = myListeners.remove(listener);
LOG.assertTrue(success);
}
示例7: fireAttributesChanged
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void fireAttributesChanged(@NotNull RangeHighlighterEx segmentHighlighter, boolean renderersChanged) {
for (MarkupModelListener listener : myListeners) {
listener.attributesChanged(segmentHighlighter, renderersChanged);
}
}
示例8: fireAfterAdded
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void fireAfterAdded(@NotNull RangeHighlighterEx segmentHighlighter) {
for (MarkupModelListener listener : myListeners) {
listener.afterAdded(segmentHighlighter);
}
}
示例9: fireBeforeRemoved
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void fireBeforeRemoved(@NotNull RangeHighlighterEx segmentHighlighter) {
for (MarkupModelListener listener : myListeners) {
listener.beforeRemoved(segmentHighlighter);
}
}
示例10: addMarkupModelListener
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) {
myHostModel.addMarkupModelListener(parentDisposable, listener);
}
示例11: removeMarkupModelListener
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
public void removeMarkupModelListener(@NotNull MarkupModelListener listener) {
boolean success = myListeners.remove(listener);
LOG.assertTrue(success);
}
示例12: fireAttributesChanged
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
protected void fireAttributesChanged(RangeHighlighterEx segmentHighlighter) {
for (MarkupModelListener listener : myListeners) {
listener.attributesChanged(segmentHighlighter);
}
}
示例13: fireAfterAdded
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
private void fireAfterAdded(RangeHighlighterEx segmentHighlighter) {
for (MarkupModelListener listener : myListeners) {
listener.afterAdded(segmentHighlighter);
}
}
示例14: fireBeforeRemoved
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
void fireBeforeRemoved(RangeHighlighterEx segmentHighlighter) {
for (MarkupModelListener listener : myListeners) {
listener.beforeRemoved(segmentHighlighter);
}
}
示例15: addMarkupModelListener
import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void addMarkupModelListener(@Nonnull Disposable parentDisposable, @Nonnull MarkupModelListener listener) {
}