Java 类com.intellij.openapi.editor.EditorLinePainter 实例源码

项目:intellij-ce-playground    文件:EditorSizeManager.java   
private void validateMaxLineWithExtension() {
  if (myMaxLineWithExtensionWidth > 0) {
    Project project = myEditor.getProject();
    VirtualFile virtualFile = myEditor.getVirtualFile();
    if (project != null && virtualFile != null) {
      for (EditorLinePainter painter : EditorLinePainter.EP_NAME.getExtensions()) {
        Collection<LineExtensionInfo> extensions = painter.getLineExtensions(project, virtualFile, myWidestLineWithExtension);
        if (extensions != null && !extensions.isEmpty()) {
          return;
        }
      }
    }
    myMaxLineWithExtensionWidth = 0;
  }
}