Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 377154

Summary: [Nested UML Compare] Comparison between 2 elements which don't have the same parent is not done properly
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.9.0   
Target Milestone: M7   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 371606    
Attachments:
Description Flags
A snapshot of the bad result none

Description Vincent Lorenzo CLA 2012-04-19 04:19:07 EDT
Steps to reproduce : 
	1/ Create a new model
	2/ Create a new Class called Class1
	3/ Create a new Package called Package1
	4/ Create a new Class in Package1, called Class2
	5/ Create a new Property in Class2, called Property1
	6/ Compare Class1 and Class2
		-> 2 changes in the model : 
			- Class1 has been added
			- Class2 has been removed
			-> the system seems to compare the owner of Class1 and Class2 instead of the classes themselves.
Comment 1 Vincent Lorenzo CLA 2012-04-19 04:21:54 EDT
Created attachment 214223 [details]
A snapshot of the bad result
Comment 2 Vincent Lorenzo CLA 2012-04-19 04:25:57 EDT
R7932 : share the project NestedCompare_DifferentParentExample in trunk/sandbox/NestedCompare
Comment 3 Vincent Lorenzo CLA 2012-04-19 08:09:10 EDT
In R7939 : 
	create the class UMLDiffEngine, UMLDiffService,UMLMatchEngine, UMLSimilarityChecker in oep.uml.compare.
These classes allows to correct the default of EMF-Compare to compare 2 elements owned by the same resource.
Comment 4 Vincent Lorenzo CLA 2012-04-19 08:24:28 EDT
R7941 : a small fix to avoid NPE
Comment 5 Vincent Lorenzo CLA 2012-04-26 09:22:38 EDT
R7972 : 
Changes the methods to get the label provider
Remove the possibility to use the Transaction content merge viewer in the stanrd EMF-Compare 
Provides an Undo/Redo for the nested and the standalone editor
Comment 6 Vincent Lorenzo CLA 2012-06-29 06:00:45 EDT
This bug can be marked as closed fixed