本文整理汇总了Java中com.intellij.openapi.diff.impl.processing.Word类的典型用法代码示例。如果您正苦于以下问题:Java Word类的具体用法?Java Word怎么用?Java Word使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Word类属于com.intellij.openapi.diff.impl.processing包,在下文中一共展示了Word类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createFragment
import com.intellij.openapi.diff.impl.processing.Word; //导入依赖的package包/类
@NotNull
@Override
public DiffFragment createFragment(@NotNull Word word1, @NotNull Word word2) {
DiffString text1 = word1.getText();
DiffString text2 = word2.getText();
if (word1.isWhitespace() && word2.isWhitespace() &&
word1.atEndOfLine() && word2.atEndOfLine()) {
return DiffFragment.unchanged(text1, text2);
}
return createFragment(text1, text2);
}
示例2: createFragment
import com.intellij.openapi.diff.impl.processing.Word; //导入依赖的package包/类
public DiffFragment createFragment(Word word1, Word word2) {
String text1 = word1.getText();
String text2 = word2.getText();
if (word1.isWhitespace() && word2.isWhitespace() &&
word1.atEndOfLine() && word2.atEndOfLine()) {
return DiffFragment.unchanged(text1, text2);
}
return createFragment(text1, text2);
}
示例3: createFragment
import com.intellij.openapi.diff.impl.processing.Word; //导入依赖的package包/类
@Nonnull
@Override
public DiffFragment createFragment(@Nonnull Word word1, @Nonnull Word word2) {
DiffString text1 = word1.getText();
DiffString text2 = word2.getText();
if (word1.isWhitespace() && word2.isWhitespace() &&
word1.atEndOfLine() && word2.atEndOfLine()) {
return DiffFragment.unchanged(text1, text2);
}
return createFragment(text1, text2);
}
示例4: createFormatting
import com.intellij.openapi.diff.impl.processing.Word; //导入依赖的package包/类
@NotNull
public Word createFormatting(@NotNull DiffString text, @NotNull TextRange textRange) {
return new Formatting(text, textRange);
}
示例5: createFormatting
import com.intellij.openapi.diff.impl.processing.Word; //导入依赖的package包/类
public Word createFormatting(String text, TextRange textRange) {
return new Formatting(text, textRange);
}
示例6: createFormatting
import com.intellij.openapi.diff.impl.processing.Word; //导入依赖的package包/类
@Nonnull
public Word createFormatting(@Nonnull DiffString text, @Nonnull TextRange textRange) {
return new Formatting(text, textRange);
}