blob: 09defb21f1371f114fe56785c7f0bf2185e8d583 [file] [log] [blame]
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00001<?xml version='1.0' encoding='UTF-8'?>
2<!-- Schema file written by PDE -->
Stephan Herrmanna55c3412010-04-24 14:26:14 +00003<schema targetNamespace="org.eclipse.jdt.core" xmlns="http://www.w3.org/2001/XMLSchema">
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00004<annotation>
5 <appInfo>
6 <meta.schema plugin="org.eclipse.jdt.core" id="codeFormatter" name="Code Formatters"/>
7 </appInfo>
8 <documentation>
9 This extension point allows clients to contribute new source code formatter implementations.
10 </documentation>
11 </annotation>
12
13 <element name="extension">
Stephan Herrmanna55c3412010-04-24 14:26:14 +000014 <annotation>
15 <appInfo>
16 <meta.element deprecated="true" />
17 </appInfo>
18 </annotation>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000019 <complexType>
20 <sequence>
21 <element ref="codeFormatter" minOccurs="0" maxOccurs="unbounded"/>
22 </sequence>
23 <attribute name="point" type="string" use="required">
24 <annotation>
25 <documentation>
26 a fully qualified identifier of the target extension point
27 </documentation>
28 </annotation>
29 </attribute>
30 <attribute name="id" type="string">
31 <annotation>
32 <documentation>
33 an optional identifier of the extension instance
34 </documentation>
35 </annotation>
36 </attribute>
37 <attribute name="name" type="string">
38 <annotation>
39 <documentation>
40 an optional name of the extension instance
41 </documentation>
42 <appInfo>
43 <meta.attribute translatable="true"/>
44 </appInfo>
45 </annotation>
46 </attribute>
47 </complexType>
48 </element>
49
50 <element name="codeFormatter">
51 <complexType>
52 <attribute name="class" type="string" use="required">
53 <annotation>
54 <documentation>
55 the class that defines the code formatter implementation. This class must be a public implementation of &lt;code&gt;org.eclipse.jdt.core.ICodeFormatter&lt;/code&gt; with a public 0-argument constructor.
56 </documentation>
57 </annotation>
58 </attribute>
59 </complexType>
60 </element>
61
62 <annotation>
63 <appInfo>
64 <meta.section type="since"/>
65 </appInfo>
66 <documentation>
67 2.0
68 </documentation>
69 </annotation>
70
71 <annotation>
72 <appInfo>
73 <meta.section type="examples"/>
74 </appInfo>
75 <documentation>
76 Example of an implementation of &lt;code&gt;ICodeFormatter&lt;/code&gt;: &lt;pre&gt;
77&lt;extension point=&quot;org.eclipse.jdt.core.codeFormatter&quot;&gt;
78 &lt;codeFormatter
79 class=&quot;com.example.MyCodeFormatter&quot;/&gt;
80&lt;/extension&gt;
81&lt;/pre&gt;
82 </documentation>
83 </annotation>
84
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000085
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000086
87 <annotation>
88 <appInfo>
89 <meta.section type="copyright"/>
90 </appInfo>
91 <documentation>
Stephan Herrmanna55c3412010-04-24 14:26:14 +000092 Copyright (c) 2000, 2010 IBM Corporation and others.&lt;br&gt;
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000093All rights reserved. This program and the accompanying materials are made
94available under the terms of the Eclipse Public License v1.0 which accompanies
95this distribution, and is available at &lt;a
96href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
Stephan Herrmanna55c3412010-04-24 14:26:14 +000097 </documentation>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000098 </annotation>
99
100</schema>