Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFCompare] Not working with resources using content types
[EMFCompare] Not working with resources using content types [message #657393] Wed, 02 March 2011 16:34 Go to next message
Eclipse UserFriend
Originally posted by:

(previously posted in the EMF maillist by mistake)

When I define extension points for
org.eclipse.core.contenttype.contentTypes/contentType on my Ecore model
resources (in an RCP running EMF 2.6.0/Helios SR1) and then after a
launch of my RCP do a compare on two instances of that model, EMFCompare
(1.1.1) no longer comes up for that resource even though the file
extension is defined in the user Preferences for EMFCompare. What I mean
no longer comes up for that resource is when I do the compare, I just
get a text compare.

If I take out my contentType definition for my Ecore model resources
relaunch the RCP, EMFCompare works.

Filed bug:

Is there a work around for this or do I have to go back to file
extension based resources to use EMFCompare?

Thanks for any help/insight,

Re: [EMFCompare] Not working with resources using content types [message #664935 is a reply to message #657393] Tue, 12 April 2011 14:24 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1886
Registered: July 2009
Senior Member

This is due from a long running bug from which ignores all "content types" except for the very first it finds when trying to find the comparison engines, even if said content type is not bound to a comparison viewer. Because of that, EMF Compare had to register a number of content types for EMF comparison.

The only workaround I can think of is to register the compare comparison viewer against your own content type. Something like this in your plugin.xml should do the trick :

class=" iewerCreator "
id=" rgeViewer "/>
contentMergeViewerId=" rgeViewer "
contentTypeId="my.content.type"/> <!--change this to reflect your content type's ID-->

Laurent Goubet
Previous Topic:[ACCELEO] Create a new module based on my metamodel
Next Topic:[EMF COMPARE]
Goto Forum:

Current Time: Mon Oct 26 11:21:15 GMT 2020

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

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

Back to the top