Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2004-04-16 19:08:23 +0000
committerAlain Magloire2004-04-16 19:08:23 +0000
commit0d674490cf6aa7f9beaf6dbb4bff2fac4596163f (patch)
treed4ad3bf631d446b0a3e8d281dd9eec546878c624 /core/org.eclipse.cdt.core/schema
parent0ce4a707ab7219e9ddb15141d8f4a4ce46d3ee2a (diff)
downloadorg.eclipse.cdt-0d674490cf6aa7f9beaf6dbb4bff2fac4596163f.tar.gz
org.eclipse.cdt-0d674490cf6aa7f9beaf6dbb4bff2fac4596163f.tar.xz
org.eclipse.cdt-0d674490cf6aa7f9beaf6dbb4bff2fac4596163f.zip
Patch from Sam Robb to cover PR 52864
Diffstat (limited to 'core/org.eclipse.cdt.core/schema')
-rw-r--r--core/org.eclipse.cdt.core/schema/CFileType.exsd12
-rw-r--r--core/org.eclipse.cdt.core/schema/CLanguage.exsd118
2 files changed, 128 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/schema/CFileType.exsd b/core/org.eclipse.cdt.core/schema/CFileType.exsd
index e36e31122ae..88cbc6a3918 100644
--- a/core/org.eclipse.cdt.core/schema/CFileType.exsd
+++ b/core/org.eclipse.cdt.core/schema/CFileType.exsd
@@ -6,7 +6,7 @@
<meta.schema plugin="org.eclipse.cdt.core" id="CFileType" name="CFileType"/>
</appInfo>
<documentation>
- Extension point representing the of a CDT file type. File types consist of a unique identifier (id), a human-readable name, and an enumerated value that indicates how this file should be treated by CDT.
+ Extension point representing a CDT file type. File types consist of a unique identifier (id), a human-readable name, an associated source language, and an enumerated value that indicates how this file should be treated by CDT.
By themselves, file types don&apos;t serve much purpose. However, they are used to build file type assocations (see the CFileTypeAssocation extension point), which are used by CDT to classify files and determine how they should be processed.
</documentation>
@@ -72,6 +72,13 @@ By themselves, file types don&apos;t serve much purpose. However, they are used
</documentation>
</annotation>
</attribute>
+ <attribute name="language" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
</complexType>
</element>
@@ -96,7 +103,8 @@ By themselves, file types don&apos;t serve much purpose. However, they are used
&lt;fileType
name=&quot;My File Type&quot;
type=&quot;source&quot;
- id=&quot;com.example.product.fileType.my_file_type&quot;&gt;
+ language=&quot;com.example.product.language.my_language&quot;
+ id=&quot;com.example.product.fileType.my_language_source&quot;&gt;
&lt;/fileType&gt;
&lt;/extension&gt;
diff --git a/core/org.eclipse.cdt.core/schema/CLanguage.exsd b/core/org.eclipse.cdt.core/schema/CLanguage.exsd
new file mode 100644
index 00000000000..9224a64b9dd
--- /dev/null
+++ b/core/org.eclipse.cdt.core/schema/CLanguage.exsd
@@ -0,0 +1,118 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.cdt.core">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.cdt.core" id="CLanguage" name="CLanguage"/>
+ </appInfo>
+ <documentation>
+ Extension point representing a CDT language. At the moment, languages consist of a unique identifier (id), and a human-readable name.
+
+By themselves, languages don&apos;t serve much purpose. However, they are used to build file types (see the CFileType extension point), which are used by CDT to classify files and determine how they should be processed.
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <complexType>
+ <sequence>
+ <element ref="language" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="language">
+ <complexType>
+ <attribute name="name" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ CDT 2.0
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ To declare a new language:
+
+ &lt;extension
+ point=&quot;org.eclipse.cdt.core.CLanguage&quot;&gt;
+ &lt;language
+ name=&quot;My Language&quot;
+ id=&quot;com.example.product.language.my_language&quot;&gt;
+ &lt;/fileType&gt;
+ &lt;/extension&gt;
+
+This indicates to CDT that there is a new language, identified using the language id &quot;com.example.product.language.my_language&quot;.
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+ This extension point is purely declarative.
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+</schema>

Back to the top