本文整理汇总了Java中org.eclipse.compare.structuremergeviewer.Differencer.findDifferences方法的典型用法代码示例。如果您正苦于以下问题:Java Differencer.findDifferences方法的具体用法?Java Differencer.findDifferences怎么用?Java Differencer.findDifferences使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.compare.structuremergeviewer.Differencer
的用法示例。
在下文中一共展示了Differencer.findDifferences方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: prepareInput
import org.eclipse.compare.structuremergeviewer.Differencer; //导入方法依赖的package包/类
@Override
protected Object prepareInput(IProgressMonitor pm) throws InvocationTargetException, InterruptedException {
try {
// fix for PR 1GFMLFB: ITPUI:WIN2000 - files that are out of sync with the file system appear as empty
pm.beginTask(Utilities.getString("ResourceCompare.taskName"), IProgressMonitor.UNKNOWN); //$NON-NLS-1$
String leftLabel = "Before ";
String rightLabel = "After ";
String format = Utilities.getString("ResourceCompare.twoWay.title"); //$NON-NLS-1$
String title = MessageFormat.format(format, new String[] { leftLabel, rightLabel });
setTitle(title);
Differencer d = new Differencer();
fRoot = d.findDifferences(false, pm, null, null, new CompareItem(left), new CompareItem(right));
return fRoot;
} finally {
pm.done();
}
}
示例2: prepareInput
import org.eclipse.compare.structuremergeviewer.Differencer; //导入方法依赖的package包/类
@Override
public Object prepareInput(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
Differencer d = new Differencer();
Object diff = d.findDifferences(false, new NullProgressMonitor(),
null, null, new Input(base_), new Input(mod_));
return diff;
}
示例3: prepareInput
import org.eclipse.compare.structuremergeviewer.Differencer; //导入方法依赖的package包/类
public Object prepareInput(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException
{
Differencer d = new Differencer();
Object diff = d.findDifferences(false, new NullProgressMonitor(),
null, null, new Input(this.base_), new Input(this.mod_));
return diff;
}