Bug 238423 - Selecting the matching engine
Summary: Selecting the matching engine
Status: CLOSED FIXED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-06-25 11:37 EDT by Dimitris Kolovos CLA
Modified: 2011-08-18 04:06 EDT (History)
2 users (show)

See Also:


Attachments
Patch for org.eclipse.emf.compare.ui (4.58 KB, patch)
2008-06-26 10:17 EDT, Dimitris Kolovos CLA
cedric.brun: iplog+
Details | Diff
Patch for org.eclipse.emf.compare.match (9.69 KB, patch)
2008-06-26 10:18 EDT, Dimitris Kolovos CLA
cedric.brun: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitris Kolovos CLA 2008-06-25 11:37:18 EDT
Since multiple matching engines can apply to a selection of models (i.e. by defining the same fileExtension value), it would be useful to have a dialog through which the user can specify which matching engine is to be used in a particular comparison.

Moreover, in order not to be disruptive to the user, it would be nice if Compare "remembered" the last selected matching engine for a particular pair, and provided an option like "Compare with..." to let the user change it (similarly to the Open, Open With behaviour for files)
Comment 1 Dimitris Kolovos CLA 2008-06-26 10:17:58 EDT
Created attachment 105912 [details]
Patch for org.eclipse.emf.compare.ui
Comment 2 Dimitris Kolovos CLA 2008-06-26 10:18:30 EDT
Created attachment 105913 [details]
Patch for org.eclipse.emf.compare.match
Comment 3 Dimitris Kolovos CLA 2008-06-26 10:20:03 EDT
I've attached patches that resolve this issue. I haven't added copyright notices; EMF Compare developers please free to add them as you see fit.
Comment 4 Cedric Brun CLA 2008-06-26 10:36:32 EDT
Thanks again Dimitrios,

that will be our first contribution for the 0.9 branch :)

Cédric
Comment 5 Dimitris Kolovos CLA 2008-06-26 10:41:49 EDT
Thanks for your hard work on EMF Compare and for making it so modular.

NB: The patches do not implement the same feature for diff engines and merge engines. I'll probably implement them soon as I continue exploring EMF Compare in more detail (unless you beat me to that and implement them first :)).
Comment 6 Laurent Goubet CLA 2008-06-26 12:58:07 EDT
I was expecting to have this issue in my TODO list soon, yet we're more than happy to get contributions ;). Thanks a lot for your feedback and involvement.
Comment 7 Laurent Goubet CLA 2008-08-11 07:31:07 EDT
Changed version to 0.9 since this will modify the API (especially the engines extension point).
Comment 8 Laurent Goubet CLA 2008-09-15 07:30:35 EDT
Dimitrios,

Sorry I couldn't take a closer look at those patches sooner. I applied them on HEAD (0.8 maintenace branch has been created at last \o/). A few things I did/could not let as-is though :

- I added a copyright on all files created by your patch and stated you as the author (I've added mailto: links to the mail you use here)
- The match engines extension point documentation states that file extensions are "comma separated". Your code assumed a semicolon as the separator, I modified this back.
- Changed the IMatchEngineSelector to take a Set instead of a List. We know there cannot be duplicates, this will avoid the checks overhead.

Note that this contribution is considered an API break since the matchengine extension point now has a "label" required attribute.

Thanks again for your involvement!
Comment 9 Laurent Goubet CLA 2009-01-05 03:43:33 EST
FIX available in 0.9.0M4.
Comment 10 Cedric Brun CLA 2010-05-26 11:02:56 EDT
cleaning up the IP log by removing the iplog+ on the bug but adding it on the patches. 
sorry for the mail bombinb involved here :/
Comment 11 Laurent Goubet CLA 2011-08-18 04:06:44 EDT
Closing our "resolved" and "verified" bugs.