Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EMF Compare/API GetVisibleDiffElements"

Line 1: Line 1:
= THIS PAGE IS OUTDATED AND IS NOT SCHEDULED TO BE UPDATED =
+
{{Template:EMF Compare Archived Notice}}
  
 
The API enables to get visible differences from a CompareEditor or its input. It is the service class: ModelStructureMergeViewerService which contains this API:  
 
The API enables to get visible differences from a CompareEditor or its input. It is the service class: ModelStructureMergeViewerService which contains this API:  
Line 24: Line 24:
 
*<pre>Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(final CompareConfiguration compareConfiguration, final ICompareNavigator compareNavigator)
 
*<pre>Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(final CompareConfiguration compareConfiguration, final ICompareNavigator compareNavigator)
 
</pre>
 
</pre>
 
[[Category:EMF Compare OUTDATED]]
 

Revision as of 11:35, 5 March 2014


The API enables to get visible differences from a CompareEditor or its input. It is the service class: ModelStructureMergeViewerService which contains this API:

  • List<DiffElement> getVisibleDiffElements(CompareEditor compareEditor)

There are different declensions, in relation to the available inputs:

  • List<DiffElement> getvisibleDiffElements(ICompareInput input, Composite parent, CompareConfiguration configuration)
  • List<DiffElement> getVisibleDiffElements(final CompareConfiguration compareConfiguration, final ICompareNavigator compareNavigator)

There is an other API to retrieve the visible differences ordered by the configured grouping, with the same declensions:

  • Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(CompareEditor compareEditor)
  • Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(ICompareInput input, Composite parent, CompareConfiguration configuration)
  • Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(final CompareConfiguration compareConfiguration, final ICompareNavigator compareNavigator)

Back to the top