Difference between revisions of "EMF Compare/Filtering facility"

From Eclipsepedia

Jump to: navigation, search
Line 1: Line 1:
The capability to group differences will be provided by a menu next to the save diff model button. This button will be same for Grouping and Filtering. The tooltip will be "Group/Filter difference elements"
+
__TOC__
  
 +
The capability to group differences will be provided by a menu next to the save diff model button. This button will be same for Grouping and Filtering. The tooltip will be "Group/Filter difference elements"
  
 
The provided menu will be organized as follow:
 
The provided menu will be organized as follow:
Line 14: Line 15:
  
  
= Preference page for filter setting configuration =
+
== Preference page for filter setting configuration ==
  
 
A preference page will be provided to set filter that should be activated by default when the comparison editor is opened.
 
A preference page will be provided to set filter that should be activated by default when the comparison editor is opened.
 
This preference will not be overridable in project-specific preferences as it would add an EMFCompare entry in each project preference page.
 
This preference will not be overridable in project-specific preferences as it would add an EMFCompare entry in each project preference page.
  
= Provide an API enabling the contribution of new filters =
+
== Provide an API enabling the contribution of new filters ==
  
 
An API and an extension point will be provided to contribute new filtering facilities.
 
An API and an extension point will be provided to contribute new filtering facilities.

Revision as of 09:24, 21 February 2011

Contents


The capability to group differences will be provided by a menu next to the save diff model button. This button will be same for Grouping and Filtering. The tooltip will be "Group/Filter difference elements"

The provided menu will be organized as follow:

  • Filter out Structural Differences
    • Hide Addition
    • Hide Removal
    • Hide Modification
    • Hide Move

Each menu entry will be a checkbox button (similar to the ones in the screenshot below), meaning that more than one filter can be selected to customize the content provider of the Diff tree editor.


Preference page for filter setting configuration

A preference page will be provided to set filter that should be activated by default when the comparison editor is opened. This preference will not be overridable in project-specific preferences as it would add an EMFCompare entry in each project preference page.

Provide an API enabling the contribution of new filters

An API and an extension point will be provided to contribute new filtering facilities. A new filter will have to implement an interface IDifferenceFilter : public interface IDifferenceFilter { boolean hide(DiffElement d); } The corresponding extension point will be a simple one with two attributes : the name of the filter (string type) and the implementation class (java type). The extension point will be implemented by the classical tryptic : "ExtensionDescriptor" (to support lazy loading) "ExtensionRegistry" will be the bridge between the plugin registry and emfcompare "ExtensionRegistryListener" to listen installation and de-installation of contributing plugins. The IDifferenceFilter implementations will be used by the content providers of the diff tree editor to check if the element should be displayed or not. However, the children of hidden elements MAY be displayed if they are not said to be hidden by the filters.