blob: 695470828c3fc56d77c050bac77ac3618015627f [file] [log] [blame]
Stephan Herrmann32fd38b2014-12-13 15:26:29 +01001<?xml version='1.0' encoding='UTF-8'?>
2<!-- Schema file written by PDE -->
3<schema targetNamespace="org.eclipse.jdt.core" xmlns="http://www.w3.org/2001/XMLSchema">
4<annotation>
5 <appInfo>
6 <meta.schema plugin="org.eclipse.jdt.core" id="javaFormatter" name="Java Formatter"/>
7 </appInfo>
8 <documentation>
9 This extension point allows clients to supply their own Java source code formatter.
10The formatter is expected to use the default formatter&apos;s options.
11 </documentation>
12 </annotation>
13
14 <element name="extension">
15 <annotation>
16 <appInfo>
17 <meta.element />
18 </appInfo>
19 </annotation>
20 <complexType>
21 <sequence minOccurs="1" maxOccurs="unbounded">
22 <element ref="javaFormatter"/>
23 </sequence>
24 <attribute name="point" type="string" use="required">
25 <annotation>
26 <documentation>
27
28 </documentation>
29 </annotation>
30 </attribute>
31 <attribute name="id" type="string">
32 <annotation>
33 <documentation>
34
35 </documentation>
36 </annotation>
37 </attribute>
38 <attribute name="name" type="string">
39 <annotation>
40 <documentation>
41
42 </documentation>
43 <appInfo>
44 <meta.attribute translatable="true"/>
45 </appInfo>
46 </annotation>
47 </attribute>
48 </complexType>
49 </element>
50
51 <element name="javaFormatter">
52 <complexType>
53 <attribute name="id" type="string" use="required">
54 <annotation>
55 <documentation>
56 A unique identifier used to reference this Java formatter.
57 </documentation>
58 </annotation>
59 </attribute>
60 <attribute name="name" type="string" use="required">
61 <annotation>
62 <documentation>
63 The name of this Java formatter, used to present this formatter in the UI.
64 </documentation>
65 <appInfo>
66 <meta.attribute translatable="true"/>
67 </appInfo>
68 </annotation>
69 </attribute>
70 <attribute name="class" type="string" use="required">
71 <annotation>
72 <documentation>
73 The fully-qualified name of the Java class that extends the org.eclipse.jdt.core.formatter.CodeFormatter abstract class.
74 </documentation>
75 <appInfo>
76 <meta.attribute kind="java" basedOn="org.eclipse.jdt.core.formatter.CodeFormatter:"/>
77 </appInfo>
78 </annotation>
79 </attribute>
80 </complexType>
81 </element>
82
83 <annotation>
84 <appInfo>
85 <meta.section type="since"/>
86 </appInfo>
87 <documentation>
88 3.11
89 </documentation>
90 </annotation>
91
92 <annotation>
93 <appInfo>
94 <meta.section type="examples"/>
95 </appInfo>
96 <documentation>
97 Example of a declaration of a &lt;code&gt;javaFormatter&lt;/code&gt;:
98&lt;pre&gt;
99&lt;extension point=&quot;org.eclipse.jdt.core.javaFormatter&quot;&gt;
100 &lt;javaFormatter
101 class=&quot;myformatter.MyFormatter&quot;
102 id=&quot;myformatter.javaFormatter&quot;
103 name=&quot;My Custom Formatter&quot;&gt;
104 &lt;/javaFormatter&gt;
105&lt;/extension&gt;
106&lt;/pre&gt;
107 </documentation>
108 </annotation>
109
110
111
112 <annotation>
113 <appInfo>
114 <meta.section type="copyright"/>
115 </appInfo>
116 <documentation>
117 Copyright (c) 2014 Google Inc. and others.&lt;br&gt;
Stephan Herrmannb94fba72018-08-28 14:00:08 +0200118
119This program and the accompanying materials
120are made available under the terms of the Eclipse Public License 2.0
Stephan Herrmann32fd38b2014-12-13 15:26:29 +0100121which accompanies this distribution, and is available at
Stephan Herrmannb94fba72018-08-28 14:00:08 +0200122&lt;a href=&quot;https://www.eclipse.org/legal/epl-2.0&quot;&gt;https://www.eclipse.org/legal/epl-v20.html&lt;/a&gt;/
123
124SPDX-License-Identifier: EPL-2.0
Stephan Herrmann32fd38b2014-12-13 15:26:29 +0100125 </documentation>
126 </annotation>
127
128</schema>