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


Java Differencer.findDifferences方法代码示例

本文整理汇总了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();
	}
}
 
开发者ID:azachar,项目名称:GrayTin,代码行数:22,代码来源:StringCompare.java

示例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;
}
 
开发者ID:aserg-ufmg,项目名称:RefDiff,代码行数:9,代码来源:TreeView.java

示例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;
}
 
开发者ID:SEAL-UCLA,项目名称:Ref-Finder,代码行数:9,代码来源:TreeView.java


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