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/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...)
 
 
(5 intermediate revisions by the same 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.
+
{{Template:EMF Compare Archive Notice}}
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:
+
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.
* the restriction is not possible,
+
 
* the restriction will take the closest parent of the selection having a matching element in the other model.
+
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:
 +
 
 +
[[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]]

Latest revision as of 11:43, 5 March 2014

THIS PAGE IS ARCHIVED. IT IS PROBABLY OUTDATED AND WILL NOT BE UPDATED

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

Back to the top