Search in sources :

Example 1 with MergeResult

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();
    }
}
Also used : MergeResult(org.eclipse.n4js.npmexporter.NpmExporter.MergeResult) DiffNode(org.eclipse.compare.structuremergeviewer.DiffNode)

Aggregations

DiffNode (org.eclipse.compare.structuremergeviewer.DiffNode)1 MergeResult (org.eclipse.n4js.npmexporter.NpmExporter.MergeResult)1