Java 类com.intellij.psi.codeStyle.ChangedRangesInfo 实例源码

项目:intellij    文件:DelegatingCodeStyleManagerSdkCompatAdapter.java   
@Override
public void reformatTextWithContext(@NotNull PsiFile file, @NotNull ChangedRangesInfo info)
    throws IncorrectOperationException {
  List<TextRange> ranges = new ArrayList<>();
  if (info.insertedRanges != null) {
    ranges.addAll(info.insertedRanges);
  }
  ranges.addAll(info.allChangedRanges);
  this.reformatTextWithContext(file, ranges);
}
项目:intellij    文件:DelegatingCodeStyleManagerSdkCompatAdapter.java   
@Override
public void reformatTextWithContext(@NotNull PsiFile file, @NotNull ChangedRangesInfo info)
    throws IncorrectOperationException {
  List<TextRange> ranges = new ArrayList<>();
  if (info.insertedRanges != null) {
    ranges.addAll(info.insertedRanges);
  }
  ranges.addAll(info.allChangedRanges);
  this.reformatTextWithContext(file, ranges);
}
项目:intellij    文件:DelegatingCodeStyleManagerSdkCompatAdapter.java   
@Override
public void reformatTextWithContext(@NotNull PsiFile file, @NotNull ChangedRangesInfo info)
    throws IncorrectOperationException {
  List<TextRange> ranges = new ArrayList<>();
  if (info.insertedRanges != null) {
    ranges.addAll(info.insertedRanges);
  }
  ranges.addAll(info.allChangedRanges);
  this.reformatTextWithContext(file, ranges);
}
项目:google-java-format    文件:CodeStyleManagerDecorator.java   
@Override
public void reformatTextWithContext(PsiFile psiFile, ChangedRangesInfo changedRangesInfo)
    throws IncorrectOperationException {
  delegate.reformatTextWithContext(psiFile, changedRangesInfo);
}
项目:EclipseCodeFormatter    文件:DelegatingCodeStyleManager.java   
@Override
public void reformatTextWithContext(@NotNull PsiFile psiFile, @NotNull ChangedRangesInfo changedRangesInfo) throws IncorrectOperationException {
    original.reformatTextWithContext(psiFile, changedRangesInfo);
}
项目:consulo    文件:FormatTextRanges.java   
public FormatTextRanges(@Nonnull ChangedRangesInfo changedRangesInfo) {
  changedRangesInfo.allChangedRanges.forEach((range) -> add(range, true));
  myInsertedRanges = changedRangesInfo.insertedRanges;
}