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...)
 
(3 intermediate revisions by one other user not shown)
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.
+
The popup menu as it appears first:
 +
 
 +
[[Image:Restrict comparison 1.png]]
 +
 
 +
Here is the StructureMergeViewer when the restriction has been activated:
 +
 
 +
[[Image:Restrict comparison 2.png]]
 +
 
 +
How to come back to the original content in the StructureMergeViewer:
 +
 
 +
[[Image:Restrict comparison 3.png]]
 +
 
 +
[[Category:Modeling]] [[Category:EMF Compare]]

Revision as of 03:56, 18 October 2012

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.

The popup menu as it appears first:

Restrict comparison 1.png

Here is the StructureMergeViewer when the restriction has been activated:

Restrict comparison 2.png

How to come back to the original content in the StructureMergeViewer:

Restrict comparison 3.png

Copyright © Eclipse Foundation, Inc. All Rights Reserved.