コード例 #1
0
 protected static InitialInfoBuilder prepareToBuildBlocksSequentially(
     Block root,
     FormattingDocumentModel model,
     @Nullable final FormatTextRanges affectedRanges,
     @NotNull CodeStyleSettings settings,
     final CommonCodeStyleSettings.IndentOptions options,
     int interestingOffset,
     @NotNull FormattingProgressCallback progressCallback) {
   InitialInfoBuilder builder =
       new InitialInfoBuilder(
           root, model, affectedRanges, settings, options, interestingOffset, progressCallback);
   builder.buildFrom(root, 0, null, null, null, true);
   return builder;
 }
コード例 #2
0
 protected static InitialInfoBuilder prepareToBuildBlocksSequentially(
     Block root,
     FormattingDocumentModel model,
     FormatProcessor.FormatOptions formatOptions,
     CodeStyleSettings settings,
     CommonCodeStyleSettings.IndentOptions options,
     @NotNull FormattingProgressCallback progressCallback) {
   InitialInfoBuilder builder =
       new InitialInfoBuilder(
           root,
           model,
           formatOptions.myAffectedRanges,
           settings,
           options,
           formatOptions.myInterestingOffset,
           progressCallback);
   builder.setCollectAlignmentsInsideFormattingRange(formatOptions.myReformatContext);
   builder.buildFrom(root, 0, null, null, null, true);
   return builder;
 }