Skip to main content



      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 13:42
Eclipse UserFriend
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: Sat Jul 05 23:46:08 EDT 2025

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

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

Back to the top