Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Suppress attributes for EMF Compare?
Suppress attributes for EMF Compare? [message #622250] Sun, 28 February 2010 03:08 Go to next message
PB  is currently offline PB Friend
Messages: 4
Registered: February 2010
Junior Member
I want to use EMF Compare, but get a lot of noise due to certain attributes I don't want to compare.
Is it possible to suppress attributes during the matching process?



Per
Re: Suppress attributes for EMF Compare? [message #622252 is a reply to message #622250] Mon, 01 March 2010 12:55 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080903040605050504020003
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

You'll have to extend the GenericDiffEngine (extension point
org.eclipse.emf.compare.diff.engine) so that its "getAttributesChecker"
method returns your own implementation. In this implementation, you can
ignore whatever attribute bothers you by overriding
"AttributesCheck.shouldBeIgnored(EAttribute)".

Laurent Goubet
Obeo

PB wrote:
> I want to use EMF Compare, but get a lot of noise due to certain
> attributes I don't want to compare.
> Is it possible to suppress attributes during the matching process?
>
>
>
> Per
>


--------------080903040605050504020003
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=
--------------080903040605050504020003--
Re: Suppress attributes for EMF Compare? [message #622271 is a reply to message #622252] Fri, 05 March 2010 04:26 Go to previous message
PB  is currently offline PB Friend
Messages: 4
Registered: February 2010
Junior Member
Thanks!

I created my subclass like this:

public class MyDiffEngine extends
org.eclipse.emf.compare.diff.engine.GenericDiffEngine implements IDiffEngine {


I added it to the extension 'org.eclipse.emf.compare.diff.engine'

However running a compare does not use my class (I have print statements in it).


Per
Previous Topic:[EEF] Converting EEF to standalone
Next Topic:Suppress attributes for EMF Compare?
Goto Forum:
  


Current Time: Thu Apr 25 20:33:30 GMT 2024

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

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

Back to the top