Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Migrate older EMFCompare project problems
Migrate older EMFCompare project problems [message #622333] Wed, 17 March 2010 05:35 Go to next message
Christian Motika is currently offline Christian MotikaFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

I'm currently trying to migrate an older Plugin project (from Eclipse 3.4, 2008) to the newest Version of Eclipse and EMF.

Unfortunately the following calss cannot be found any more:
org.eclipse.emf.compare.diff.metamodel.ModelInputSnapshot

This was once the return value of:
getComparator().getComparisonResult();

And one could ask the DiffFactory to create an instance that one afterwards sets the diff/match:
c = DiffFactory.eINSTANCE.createModelInputSnapshot();
c.setDate(Calendar.getInstance().getTime());
c.setDiff(diff);
c.setMatch(match);

How would I migrate this code?
Re: Migrate older EMFCompare project problems [message #622334 is a reply to message #622333] Wed, 17 March 2010 14:07 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060204050406050707070500
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Chris,

This class was split in two in order to cope with the possibility to
compare whole resource sets for differences. The two classes that now
stand in place of ModelInputSnapshot are ComparisonResourceSetSnapshot
and ComparisonResourceSnapshot. Their common interface is
ComparisonSnapshot.

You can still use the DiffFactory to create any of the two
implementation, then set your date, diff and match as you did before. As
you're migrating old code, I'd assume you wish to create an instance of
"ComparisonResourceSnapshot".

Laurent Goubet
Obeo

Chris Motika wrote:
> Hi,
>
> I'm currently trying to migrate an older Plugin project (from Eclipse
> 3.4, 2008) to the newest Version of Eclipse and EMF.
>
> Unfortunately the following calss cannot be found any more:
> org.eclipse.emf.compare.diff.metamodel.ModelInputSnapshot
>
> This was once the return value of:
> getComparator().getComparisonResult();
>
> And one could ask the DiffFactory to create an instance that one
> afterwards sets the diff/match:
> c = DiffFactory.eINSTANCE.createModelInputSnapshot();
> c.setDate(Calendar.getInstance().getTime());
> c.setDiff(diff);
> c.setMatch(match);
>
> How would I migrate this code?


--------------060204050406050707070500
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------060204050406050707070500--
Previous Topic:Migrate older EMFCompare project problems
Next Topic:[EMF Compare] diff extensions
Goto Forum:
  


Current Time: Thu Apr 25 22:22:13 GMT 2024

Powered by FUDForum. Page generated in 0.02857 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top