Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Compare] How to compare ecore models, content types
[Compare] How to compare ecore models, content types [message #614161] Tue, 29 January 2008 18:42
Aleksander Bandelj is currently offline Aleksander BandeljFriend
Messages: 98
Registered: July 2009
Member
Compare uses diff and merge viewers for ModelContentType, which is bound
to ecore filename extension. But this filename extension seems to be
already taken by EMF for XML content type. So XML/text compare is being
used for ecore models.

I tried to change priority to high in org.eclipse.emf.compare.ui, but it
didn't help:

<extension
point="org.eclipse.core.runtime.contentTypes">
<content-type
file-extensions="emfdiff,uml,ecore"
id="org.eclipse.emf.compare.ui.contenttype.ModelContentType "
name="%modelContentTypeName"
priority="normal">
</content-type>
</extension>

This one from org.eclipse.emf.ecore.xmi always takes precendence

<extension
point="org.eclipse.core.runtime.contentTypes">
<content-type
base-type="org.eclipse.core.runtime.xml"
file-extensions="ecore,xmi"
id="org.eclipse.emf.ecore"
name="%_UI_Ecore_content_type"
priority="normal">
<describer

class=" org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Des criber ">
<parameter
name="namespace"
value="http://www.eclipse.org/emf/2002/Ecore">
</parameter>
<parameter
name="kind"
value="xmi">
</parameter>
</describer>
</content-type>
</extension>

This is with recent EMF download I200801152000
< http://www.eclipse.org/modeling/emf/news/relnotes.php?projec t=emf&version=HEAD#I200801152000>

-a
Previous Topic:[Ecore Tools] Error by EMFT
Next Topic:[Teneo] Class loader issues within a plugin
Goto Forum:
  


Current Time: Thu Sep 24 05:54:35 GMT 2020

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

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

Back to the top