|
Re: Migrate older EMFCompare project problems [message #622334 is a reply to message #622333] |
Wed, 17 March 2010 14:07 |
|
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--
|
|
|
Powered by
FUDForum. Page generated in 0.02857 seconds