MatchModel match = MatchService.doMatch(eObject1, eObject2, Collections.<String, Object> emptyMap()); DiffModel diff = DiffService.doDiff(match, false); ComparisonResourceSnapshot snapshot = DiffFactory.eINSTANCE.createComparisonResourceSnapshot(); snapshot.setDiff(diff); snapshot.setMatch(match); ModelCompareEditorInput input = new ModelCompareEditorInput(snapshot); CompareUI.openCompareEditor(input, true);