Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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/Restrict comparison on selection"

(New page: In the tree comparison editor, a right click on an element MUST open a popup menu. It gives the ability to select the selected element as the new root of the comparison. So we must be able...)
 
Line 1: Line 1:
In the tree comparison editor, a right click on an element MUST open a popup menu. It gives the ability to select the selected element as the new root of the comparison. So we must be able to open (EditorInput) the tree comparison editor on EObject input and not only on ResourceSet. Moreover, this feature does not need the difference to be computed on the model. Only the match has to be performed. We MAY then implement a action to match elements in models instead of fully comparing (compute difference) models.
+
In the tree comparison editor, a right click on an DiffGroup MUST open a popup menu. It gives the ability to select the selected element as the new root of the comparison. Then, the StructureMergeViewer is updated to only show the differences below the selected element.  
If the selected element has a matching element, this matching element is the new other root for comparison.
+
  
If it doesn't have, we have two solutions:
+
As soon as a DiffGroup has been selected to restrict the comparison, the popup menu does not allow to select a new DiffGroup to further restrict the comparison but only to restore the whole comparision view.
* the restriction is not possible,
+
* the restriction will take the closest parent of the selection having a matching element in the other model.
+

Revision as of 05:35, 6 July 2011

In the tree comparison editor, a right click on an DiffGroup MUST open a popup menu. It gives the ability to select the selected element as the new root of the comparison. Then, the StructureMergeViewer is updated to only show the differences below the selected element.

As soon as a DiffGroup has been selected to restrict the comparison, the popup menu does not allow to select a new DiffGroup to further restrict the comparison but only to restore the whole comparision view.

Back to the top