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

Damien,

Cool.  It's almost as if I anticipated your needs! :-P

Damien Thivolle wrote:
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!