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

项目:intellij-ce-playground    文件:IndentsModelImpl.java   
@Override
public IndentGuideDescriptor getCaretIndentGuide() {
  final LogicalPosition pos = myEditor.getCaretModel().getLogicalPosition();
  final int column = pos.column;
  final int line = pos.line;

  if (column > 0) {
    for (IndentGuideDescriptor indent : myIndents) {
      if (column == indent.indentLevel && line >= indent.startLine && line < indent.endLine) {
        return indent;
      }
    }
  }
  return null;
}
项目:intellij-ce-playground    文件:IndentsModelImpl.java   
@Override
public void assumeIndents(@NotNull List<IndentGuideDescriptor> descriptors) {
  myIndents = descriptors;
  myIndentsByLines.clear();
  for (IndentGuideDescriptor descriptor : myIndents) {
    myIndentsByLines.put(new IntPair(descriptor.startLine, descriptor.endLine), descriptor);
  }
}
项目:tools-idea    文件:IndentsModelImpl.java   
@Override
public IndentGuideDescriptor getCaretIndentGuide() {
  final LogicalPosition pos = myEditor.getCaretModel().getLogicalPosition();
  final int column = pos.column;
  final int line = pos.line;

  if (column > 0) {
    for (IndentGuideDescriptor indent : myIndents) {
      if (column == indent.indentLevel && line >= indent.startLine && line < indent.endLine) {
        return indent;
      }
    }
  }
  return null;
}
项目:tools-idea    文件:IndentsModelImpl.java   
@Override
public void assumeIndents(@NotNull List<IndentGuideDescriptor> descriptors) {
  myIndents = descriptors;
  myIndentsByLines.clear();
  for (IndentGuideDescriptor descriptor : myIndents) {
    myIndentsByLines.put(new IntPair(descriptor.startLine, descriptor.endLine), descriptor);
  }
}
项目:consulo    文件:IndentsModelImpl.java   
@Override
public IndentGuideDescriptor getCaretIndentGuide() {
  final LogicalPosition pos = myEditor.getCaretModel().getLogicalPosition();
  final int column = pos.column;
  final int line = pos.line;

  if (column > 0) {
    for (IndentGuideDescriptor indent : myIndents) {
      if (column == indent.indentLevel && line >= indent.startLine && line < indent.endLine) {
        return indent;
      }
    }
  }
  return null;
}
项目:consulo    文件:IndentsModelImpl.java   
@Override
public void assumeIndents(@Nonnull List<IndentGuideDescriptor> descriptors) {
  myIndents = descriptors;
  myIndentsByLines.clear();
  for (IndentGuideDescriptor descriptor : myIndents) {
    myIndentsByLines.put(new IntPair(descriptor.startLine, descriptor.endLine), descriptor);
  }
}
项目:intellij-ce-playground    文件:EmptyIndentsModel.java   
@Override
public IndentGuideDescriptor getCaretIndentGuide() {
  return null;
}
项目:intellij-ce-playground    文件:EmptyIndentsModel.java   
@Override
public IndentGuideDescriptor getDescriptor(int startLine, int endLine) {
  return null;
}
项目:intellij-ce-playground    文件:EmptyIndentsModel.java   
@Override
public void assumeIndents(List<IndentGuideDescriptor> descriptors) {
}
项目:intellij-ce-playground    文件:IndentsModelImpl.java   
@NotNull
public List<IndentGuideDescriptor> getIndents() {
  return myIndents;
}
项目:intellij-ce-playground    文件:IndentsModelImpl.java   
@Override
public IndentGuideDescriptor getDescriptor(int startLine, int endLine) {
  return myIndentsByLines.get(new IntPair(startLine, endLine));
}
项目:tools-idea    文件:EmptyIndentsModel.java   
@Override
public IndentGuideDescriptor getCaretIndentGuide() {
  return null;
}
项目:tools-idea    文件:EmptyIndentsModel.java   
@Override
public IndentGuideDescriptor getDescriptor(int startLine, int endLine) {
  return null;
}
项目:tools-idea    文件:EmptyIndentsModel.java   
@Override
public void assumeIndents(List<IndentGuideDescriptor> descriptors) {
}
项目:tools-idea    文件:IndentsModelImpl.java   
@NotNull
public List<IndentGuideDescriptor> getIndents() {
  return myIndents;
}
项目:tools-idea    文件:IndentsModelImpl.java   
@Override
public IndentGuideDescriptor getDescriptor(int startLine, int endLine) {
  return myIndentsByLines.get(new IntPair(startLine, endLine));
}
项目:consulo    文件:EmptyIndentsModel.java   
@Override
public IndentGuideDescriptor getCaretIndentGuide() {
  return null;
}
项目:consulo    文件:EmptyIndentsModel.java   
@Override
public IndentGuideDescriptor getDescriptor(int startLine, int endLine) {
  return null;
}
项目:consulo    文件:EmptyIndentsModel.java   
@Override
public void assumeIndents(List<IndentGuideDescriptor> descriptors) {
}
项目:consulo    文件:IndentsModelImpl.java   
@Nonnull
public List<IndentGuideDescriptor> getIndents() {
  return myIndents;
}
项目:consulo    文件:IndentsModelImpl.java   
@Override
public IndentGuideDescriptor getDescriptor(int startLine, int endLine) {
  return myIndentsByLines.get(new IntPair(startLine, endLine));
}