[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: XMLRootElementContentDescriber and element with colons

Ed Merks a écrit :
Damien,

Hello again :)


Maybe you want to be using EMF's 2.4's new support for content types? There isn't much documentation for it though, but what else is new?


Here's an example in the plugin.xml for the xmi plugin that defines a content type for Ecore itself:

<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$Describer">
<parameter
name="namespace"
value="http://www.eclipse.org/emf/2002/Ecore";>
</parameter>
<parameter
name="kind"
value="xmi">
</parameter>
</describer>
</content-type>
</extension>

So, I've downloaded Eclipse 3.4 and EMF 2.4. I did exactly as you said, I replaced http://www.eclipse.org/emf/2002/Ecore by
http://www.topcased.org/SAM/1.0, I changed the file-extensions to match my needs and it just works perfectly :)


Thanks a lot!

--
Damien THIVOLLE                   |     INRIA Rhone-Alpes / VASY
PHD Student                       |     655, Avenue de l'Europe
damien.thivolle@xxxxxxxx          |     Montbonnot
http://www.inrialpes.fr/vasy      |     38 334 Saint Ismier Cedex France