当前位置: 首页>>代码示例>>Java>>正文


Java DiffTreeChangeBuilder类代码示例

本文整理汇总了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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:PsiBuilderImpl.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:BlockSupportImpl.java

示例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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:BlockSupportImpl.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:PsiBuilderImpl.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:10,代码来源:BlockSupportImpl.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:PsiBuilderImpl.java

示例7: ConvertFromTokensToASTBuilder

import com.intellij.util.diff.DiffTreeChangeBuilder; //导入依赖的package包/类
public ConvertFromTokensToASTBuilder(StartMarker rootNode, DiffTreeChangeBuilder<ASTNode, ASTNode> delegate) {
  myDelegate = delegate;
  myConverter = new ASTConverter(rootNode);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:PsiBuilderImpl.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:PsiBuilderImpl.java


注:本文中的com.intellij.util.diff.DiffTreeChangeBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。