Difference between revisions of "EMF Compare/API GetVisibleDiffElements"

From Eclipsepedia

Jump to: navigation, search
(New page: The API enables to get visible differences from a CompareEditor or its input.)
 
Line 1: Line 1:
The API enables to get visible differences from a CompareEditor or its input.
+
The API enables to get visible differences from a CompareEditor or its input. It is the service class: ModelStructureMergeViewerService which contains this API:
 +
 
 +
*<pre>List&lt;DiffElement&gt; getVisibleDiffElements(CompareEditor compareEditor)
 +
</pre>
 +
 
 +
There are different declensions, in relation to the available inputs:
 +
 
 +
*<pre>List<DiffElement> getvisibleDiffElements(ICompareInput input, Composite parent, CompareConfiguration configuration)
 +
</pre>
 +
 
 +
*<pre>List<DiffElement> getVisibleDiffElements(final CompareConfiguration compareConfiguration, final ICompareNavigator compareNavigator)
 +
</pre>
 +
 
 +
There is an other API to retrieve the visible differences ordered by the configured grouping, with the same declensions:
 +
 
 +
*<pre>Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(CompareEditor compareEditor)
 +
</pre>
 +
 
 +
*<pre>getGroupedDiffElements(ICompareInput input, Composite parent, CompareConfiguration configuration)
 +
</pre>
 +
 
 +
*<pre>Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(final CompareConfiguration compareConfiguration, final ICompareNavigator compareNavigator)
 +
</pre>

Revision as of 09:01, 13 October 2011

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)
    
  • getGroupedDiffElements(ICompareInput input, Composite parent, CompareConfiguration configuration)
    
  • Map<UIDifferenceGroup, List<DiffElement>> getGroupedDiffElements(final CompareConfiguration compareConfiguration, final ICompareNavigator compareNavigator)