本文整理汇总了Java中com.intellij.util.diff.DiffTreeChangeBuilder类的典型用法代码示例。如果您正苦于以下问题:Java DiffTreeChangeBuilder类的具体用法?Java DiffTreeChangeBuilder怎么用?Java DiffTreeChangeBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DiffTreeChangeBuilder类属于com.intellij.util.diff包,在下文中一共展示了DiffTreeChangeBuilder类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: merge
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
@NotNull
private DiffLog merge(@NotNull final ASTNode oldRoot, @NotNull StartMarker newRoot, @NotNull CharSequence lastCommittedText) {
DiffLog diffLog = new DiffLog();
DiffTreeChangeBuilder<ASTNode, LighterASTNode> builder = new ConvertFromTokensToASTBuilder(newRoot, diffLog);
MyTreeStructure treeStructure = new MyTreeStructure(newRoot, null);
ShallowNodeComparator<ASTNode, LighterASTNode> comparator = new MyComparator(getUserDataUnprotected(CUSTOM_COMPARATOR), treeStructure);
ProgressIndicator indicator = ProgressIndicatorProvider.getGlobalProgressIndicator();
BlockSupportImpl.diffTrees(oldRoot, builder, comparator, treeStructure, indicator == null ? new EmptyProgressIndicator() : indicator,
lastCommittedText);
return diffLog;
}
示例2: diffTrees
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
public static <T> void diffTrees(@NotNull final ASTNode oldRoot,
@NotNull final DiffTreeChangeBuilder<ASTNode, T> builder,
@NotNull final ShallowNodeComparator<ASTNode, T> comparator,
@NotNull final FlyweightCapableTreeStructure<T> newTreeStructure,
@NotNull ProgressIndicator indicator,
@NotNull CharSequence lastCommittedText) {
TreeUtil.ensureParsedRecursivelyCheckingProgress(oldRoot, indicator);
DiffTree.diff(createInterruptibleASTStructure(oldRoot, indicator), newTreeStructure, comparator, builder, lastCommittedText);
}
示例3: diffTrees
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
public static <T> void diffTrees(@NotNull final ASTNode oldRoot,
@NotNull final DiffTreeChangeBuilder<ASTNode, T> builder,
@NotNull final ShallowNodeComparator<ASTNode, T> comparator,
@NotNull final FlyweightCapableTreeStructure<T> newTreeStructure,
final ProgressIndicator indicator) {
TreeUtil.ensureParsedRecursivelyCheckingProgress(oldRoot, indicator);
DiffTree.diff(createInterruptibleASTStructure(oldRoot, indicator), newTreeStructure, comparator, builder);
}
示例4: merge
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
@Nonnull
private DiffLog merge(@Nonnull final ASTNode oldRoot, @Nonnull StartMarker newRoot, @Nonnull CharSequence lastCommittedText) {
DiffLog diffLog = new DiffLog();
DiffTreeChangeBuilder<ASTNode, LighterASTNode> builder = new ConvertFromTokensToASTBuilder(newRoot, diffLog);
MyTreeStructure treeStructure = new MyTreeStructure(newRoot, null);
ShallowNodeComparator<ASTNode, LighterASTNode> comparator = new MyComparator(getUserDataUnprotected(CUSTOM_COMPARATOR), treeStructure);
ProgressIndicator indicator = ProgressIndicatorProvider.getGlobalProgressIndicator();
BlockSupportImpl.diffTrees(oldRoot, builder, comparator, treeStructure, indicator == null ? new EmptyProgressIndicator() : indicator, lastCommittedText);
return diffLog;
}
示例5: diffTrees
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
public static <T> void diffTrees(@Nonnull final ASTNode oldRoot,
@Nonnull final DiffTreeChangeBuilder<ASTNode, T> builder,
@Nonnull final ShallowNodeComparator<ASTNode, T> comparator,
@Nonnull final FlyweightCapableTreeStructure<T> newTreeStructure,
@Nonnull ProgressIndicator indicator,
@Nonnull CharSequence lastCommittedText) {
TreeUtil.ensureParsedRecursivelyCheckingProgress(oldRoot, indicator);
DiffTree.diff(createInterruptibleASTStructure(oldRoot, indicator), newTreeStructure, comparator, builder, lastCommittedText);
}
示例6: ConvertFromTokensToASTBuilder
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
private ConvertFromTokensToASTBuilder(@NotNull StartMarker rootNode, @NotNull DiffTreeChangeBuilder<ASTNode, ASTNode> delegate) {
myDelegate = delegate;
myConverter = new ASTConverter(rootNode);
}
示例7: ConvertFromTokensToASTBuilder
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
public ConvertFromTokensToASTBuilder(StartMarker rootNode, DiffTreeChangeBuilder<ASTNode, ASTNode> delegate) {
myDelegate = delegate;
myConverter = new ASTConverter(rootNode);
}
示例8: ConvertFromTokensToASTBuilder
import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
private ConvertFromTokensToASTBuilder(@Nonnull StartMarker rootNode, @Nonnull DiffTreeChangeBuilder<ASTNode, ASTNode> delegate) {
myDelegate = delegate;
myConverter = new ASTConverter(rootNode);
}