当前位置: 首页>>代码示例>>Java>>正文


Java MarkupModelListener类代码示例

本文整理汇总了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);
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:MarkupModelImpl.java

示例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;
      }
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:LanguageConsoleBuilder.java

示例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);
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:MarkupModelImpl.java

示例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;
      }
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:15,代码来源:LanguageConsoleBuilder.java

示例5: addMarkupModelListener

import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void addMarkupModelListener(@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) {
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:EmptyMarkupModel.java

示例6: removeMarkupModelListener

import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
void removeMarkupModelListener(@NotNull MarkupModelListener listener) {
  boolean success = myListeners.remove(listener);
  LOG.assertTrue(success);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:MarkupModelImpl.java

示例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);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:MarkupModelImpl.java

示例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);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:MarkupModelImpl.java

示例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);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:MarkupModelImpl.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:MarkupModelWindow.java

示例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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:MarkupModelImpl.java

示例12: fireAttributesChanged

import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
protected void fireAttributesChanged(RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.attributesChanged(segmentHighlighter);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:MarkupModelImpl.java

示例13: fireAfterAdded

import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
private void fireAfterAdded(RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.afterAdded(segmentHighlighter);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:MarkupModelImpl.java

示例14: fireBeforeRemoved

import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
void fireBeforeRemoved(RangeHighlighterEx segmentHighlighter) {
  for (MarkupModelListener listener : myListeners) {
    listener.beforeRemoved(segmentHighlighter);
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:MarkupModelImpl.java

示例15: addMarkupModelListener

import com.intellij.openapi.editor.impl.event.MarkupModelListener; //导入依赖的package包/类
@Override
public void addMarkupModelListener(@Nonnull Disposable parentDisposable, @Nonnull MarkupModelListener listener) {
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:EmptyMarkupModel.java


注:本文中的com.intellij.openapi.editor.impl.event.MarkupModelListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。