|
|
|
Re: Problem with XML modeling: Class 'name' is not found or is abstract. [message #1159185 is a reply to message #1159166] |
Mon, 28 October 2013 06:53  |
Eclipse User |
|
|
|
Lefteris,
Have you regenerated to see what EMF produces for you? Then you have
something that works and you can spend time figuring out how and why.
On 28/10/2013 11:40 AM, Lefteris Skoutaris wrote:
> Hi Ed,
>
> I have managed to parse the XML instance with a non-XML extension, but
> I would like to learn how this content type recognition works.
>
> The package org.eclipse.core.runtime.content and the plugin.xml
> includes the following content types.
>
> <plugin>
> <extension-point id="contentTypes" name="%contentTypesName"
> schema="schema/contentTypes.exsd"/>
> <extension point="org.eclipse.core.contenttype.contentTypes">
> <content-type id="org.eclipse.core.runtime.text"
> name="%textContentTypeName" priority="high"
> file-extensions="txt">
> <describer
> class="org.eclipse.core.internal.content.TextContentDescriber"/>
> <property name="org.eclipse.core.runtime.bom"/>
> <property name="org.eclipse.core.runtime.charset"/>
> </content-type>
> <content-type id="org.eclipse.core.runtime.xml"
> name="%xmlContentTypeName"
> base-type="org.eclipse.core.runtime.text"
> priority="high"
> file-extensions="xml">
> <property name="org.eclipse.core.runtime.charset"
> default="UTF-8"/>
> <describer
> class="org.eclipse.core.runtime.content.XMLContentDescriber"/>
> </content-type>
> <!-- a placeholder for setups where JDT's official type is not
> available -->
> <content-type id="org.eclipse.core.runtime.properties"
> name="%propertiesContentTypeName"
> base-type="org.eclipse.core.runtime.text"
> alias-for="org.eclipse.jdt.core.javaProperties"
> file-extensions="properties">
> <property name="org.eclipse.core.runtime.charset"
> default="ISO-8859-1"/>
> </content-type>
> </extension> </plugin>
>
>
> Do I have to somehow associate the instance file.xml with the
> project's plugins? If yes, how do I correlate the two? By setting at
> the ID the same namespace included in the file?I need to understand
> this concept first before making any changes.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04593 seconds