use of org.eclipse.n4js.npmexporter.NpmExporter.MergeResult in project n4js by eclipse.
the class PackageJsonComparePage method setCompareViewerInput.
void setCompareViewerInput(int dataIndex) {
if (!fViewer.getControl().isDisposed()) {
MergeResult mergeResult = mergeResults.get(dataIndex);
fViewer.setInput(new DiffNode(new DiffElementFromString(mergeResult.getUserPackagaJson()), new DiffElementFromString(mergeResult.getFinalPackageJson())));
fViewer.refresh();
}
}
Aggregations