Menu

Commit [r251]  Maximize  Restore  History

Supply extension point for input parsers for specific file extensions

hotzst 2008-06-21

changed /plugin/plugin.xml
added /plugin/schema/ch.sahits.codegen.java.inputparser.exsd
changed /plugin/src/ch/sahits/codegen/java/model/ModelFactory.java
/plugin/plugin.xml Diff Switch to side-by-side view
--- a/plugin/plugin.xml
+++ b/plugin/plugin.xml
@@ -3,6 +3,7 @@
 <plugin>
    <extension-point id="ch.sahits.codegen.java.generator" name="Code Generator" schema="schema/ch.sahits.codegen.java.generator.exsd"/>
    <extension-point id="ch.sahits.codegen.java.jettemplate" name="JETemplate location" schema="schema/ch.sahits.codegen.java.jettemplate.exsd"/>
+   <extension-point id="ch.sahits.codegen.java.inputparser" name="Input File Parser" schema="schema/ch.sahits.codegen.java.inputparser.exsd"/>
 <!--
    <extension
          point="org.eclipse.ui.editors">
/plugin/schema/ch.sahits.codegen.java.inputparser.exsd Diff Switch to side-by-side view
--- a
+++ b/plugin/schema/ch.sahits.codegen.java.inputparser.exsd
@@ -0,0 +1,111 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="ch.sahits.codegen.java">
+<annotation>
+      <appInfo>
+         <meta.schema plugin="ch.sahits.codegen.java" id="ch.sahits.codegen.java.inputparser" name="Input File Parser"/>
+      </appInfo>
+      <documentation>
+         Parser classes for a specific file extension
+      </documentation>
+   </annotation>
+
+   <element name="extension">
+      <complexType>
+         <sequence>
+            <element ref="inputParser"/>
+         </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>
+               <appInfo>
+                  <meta.attribute translatable="true"/>
+               </appInfo>
+            </annotation>
+         </attribute>
+      </complexType>
+   </element>
+
+   <element name="inputParser">
+      <complexType>
+         <attribute name="class" type="string">
+            <annotation>
+               <documentation>
+                  
+               </documentation>
+               <appInfo>
+                  <meta.attribute kind="java" basedOn="ch.sahits.codegen.java.IInputParser"/>
+               </appInfo>
+            </annotation>
+         </attribute>
+      </complexType>
+   </element>
+
+   <annotation>
+      <appInfo>
+         <meta.section type="since"/>
+      </appInfo>
+      <documentation>
+         0.9.1
+      </documentation>
+   </annotation>
+
+   <annotation>
+      <appInfo>
+         <meta.section type="examples"/>
+      </appInfo>
+      <documentation>
+         &lt;plugin&gt;
+   &lt;extension
+         point=&quot;ch.sahits.codegen.java.inputparser&quot;&gt;
+      &lt;inputParser
+            class=&quot;TestInputParser&quot;&gt;&lt;/inputParser&gt;
+   &lt;/extension&gt;
+&lt;/plugin&gt;
+      </documentation>
+   </annotation>
+
+   <annotation>
+      <appInfo>
+         <meta.section type="apiInfo"/>
+      </appInfo>
+      <documentation>
+         All classes must implement the interface IInputParser
+      </documentation>
+   </annotation>
+
+   <annotation>
+      <appInfo>
+         <meta.section type="implementation"/>
+      </appInfo>
+      <documentation>
+         [Enter information about supplied implementation of this extension point.]
+      </documentation>
+   </annotation>
+
+   <annotation>
+      <appInfo>
+         <meta.section type="copyright"/>
+      </appInfo>
+      <documentation>
+         
+      </documentation>
+   </annotation>
+
+</schema>
/plugin/src/ch/sahits/codegen/java/model/ModelFactory.java Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.