Skip to main content
summaryrefslogtreecommitdiffstats
blob: 4e735e38a5ed58c3dbde13b9374b5d14155aece2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.jet">
<annotation>
      <appInfo>
         <meta.schema plugin="org.eclipse.jet" id="transform" name="JET2 Transform"/>
      </appInfo>
      <documentation>
         Declares that the extending plugin is a JET2 transform. 
&lt;p&gt;
&lt;b&gt;This extension point is not intended to be used directly by clients.&lt;/b&gt;
      </documentation>
   </annotation>

   <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>

   <element name="extension">
      <complexType>
         <sequence>
            <element ref="transform"/>
         </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="transform">
      <annotation>
         <documentation>
            Declares transformation access details. For JET2 Transform projects, there is exactly one of these.
         </documentation>
      </annotation>
      <complexType>
         <sequence>
            <element ref="description"/>
            <element ref="tagLibraries"/>
            <element ref="enablement" minOccurs="0" maxOccurs="1"/>
         </sequence>
         <attribute name="startTemplate" type="string" use="required">
            <annotation>
               <documentation>
                  The project relative path to the main template in the transform. The main template serves as an entry point for the transform. Typical values: template/control.jet or template/main.jet
               </documentation>
               <appInfo>
                  <meta.attribute kind="resource"/>
               </appInfo>
            </annotation>
         </attribute>
         <attribute name="templateLoaderClass" type="string" use="required">
            <annotation>
               <documentation>
                  The fully qualified Java class name of the template loader class.
               </documentation>
               <appInfo>
                  <meta.attribute kind="java" basedOn="org.eclipse.emf.internal.jet2.runtime.IJET2Transformation"/>
               </appInfo>
            </annotation>
         </attribute>
         <attribute name="modelLoader" type="string">
            <annotation>
               <documentation>
                  A reference to the id of the model loader to use when loading Eclipse resources. If not specified, a model loader is selected based on the file extension of the input model, or by the value of the &apos;modelExtension&apos; attribute.
               </documentation>
            </annotation>
         </attribute>
         <attribute name="overrides" type="string">
            <annotation>
               <documentation>
                  The id of a JET2 transform that this transform overrides. If not specified, the transform does not override another transform.
               </documentation>
            </annotation>
         </attribute>
         <attribute name="modelExtension" type="string">
            <annotation>
               <documentation>
                  When specified, model loading ignores the file extension on the input model, and uses the value specified here instead. This can affect both the selection of a model loader (if the modelLoader attribute is not set), and the behavior of the selected model loader. 
&lt;p&gt;
A typical use would be to force model loading to treat inputs as a specific type. For example, an Eclipse XML Schema file (exsd file extension) is an XML document that is not recognized by the XML model loaders. Setting the &apos;modelExtension&apos; attribute to &apos;xml&apos; would cause the model loading mechanism to treat an any input as if it had an &apos;xml&apos; extension.
&lt;/p&gt;
               </documentation>
            </annotation>
         </attribute>
         <attribute name="private" type="boolean" use="default" value="false">
            <annotation>
               <documentation>
                  Indicate whether the transform should appear in any JET UIs, or be enumerated by any JET APIs that search for available transforms. The default is &lt;code&gt;false&lt;/code&gt;, indicating that the transform will appear in all UIs and APIs.
               </documentation>
            </annotation>
         </attribute>
         <attribute name="modelSchema" type="string">
            <annotation>
               <documentation>
                  An optional project relative path or a URL to a file that serves as a schema for transform inputs. JET APIs makes no use of this information, but a schema can help users in creating valid models for the transform.
               </documentation>
               <appInfo>
                  <meta.attribute kind="resource"/>
               </appInfo>
            </annotation>
         </attribute>
      </complexType>
   </element>

   <element name="tagLibraries">
      <annotation>
         <documentation>
            Declares tag libraries that may be used by the transform&apos;s templates.
         </documentation>
      </annotation>
      <complexType>
         <sequence>
            <element ref="importLibrary" minOccurs="0" maxOccurs="unbounded"/>
         </sequence>
      </complexType>
   </element>

   <element name="importLibrary">
      <annotation>
         <documentation>
            References an JET2 tag library.
         </documentation>
      </annotation>
      <complexType>
         <attribute name="id" type="string" use="required">
            <annotation>
               <documentation>
                  The tag library id. Example: org.eclipse.jet.controlTags
               </documentation>
            </annotation>
         </attribute>
         <attribute name="usePrefix" type="string" use="required">
            <annotation>
               <documentation>
                  The prefix to use for the tag library when the tag library is auto imported into the project&apos;s templates.
               </documentation>
            </annotation>
         </attribute>
         <attribute name="autoImport" type="boolean" use="required">
            <annotation>
               <documentation>
                  Indicates whether the project&apos;s templates should implicitly import the tags in this library.
               </documentation>
            </annotation>
         </attribute>
      </complexType>
   </element>

   <element name="description" type="string">
      <annotation>
         <documentation>
            A textual description of the transform.
         </documentation>
      </annotation>
   </element>

   <annotation>
      <appInfo>
         <meta.section type="since"/>
      </appInfo>
      <documentation>
         1.0
      </documentation>
   </annotation>

   <annotation>
      <appInfo>
         <meta.section type="examples"/>
      </appInfo>
      <documentation>
         [Enter extension point usage example here.]
      </documentation>
   </annotation>

   <annotation>
      <appInfo>
         <meta.section type="apiInfo"/>
      </appInfo>
      <documentation>
         [Enter API information here.]
      </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>

Back to the top