Stephan Herrmann | 32fd38b | 2014-12-13 15:26:29 +0100 | [diff] [blame] | 1 | <?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. |
| 10 | The formatter is expected to use the default formatter'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 <code>javaFormatter</code>: |
| 98 | <pre> |
| 99 | <extension point="org.eclipse.jdt.core.javaFormatter"> |
| 100 | <javaFormatter |
| 101 | class="myformatter.MyFormatter" |
| 102 | id="myformatter.javaFormatter" |
| 103 | name="My Custom Formatter"> |
| 104 | </javaFormatter> |
| 105 | </extension> |
| 106 | </pre> |
| 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.<br> |
Stephan Herrmann | b94fba7 | 2018-08-28 14:00:08 +0200 | [diff] [blame] | 118 | |
| 119 | This program and the accompanying materials |
| 120 | are made available under the terms of the Eclipse Public License 2.0 |
Stephan Herrmann | 32fd38b | 2014-12-13 15:26:29 +0100 | [diff] [blame] | 121 | which accompanies this distribution, and is available at |
Stephan Herrmann | b94fba7 | 2018-08-28 14:00:08 +0200 | [diff] [blame] | 122 | <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/ |
| 123 | |
| 124 | SPDX-License-Identifier: EPL-2.0 |
Stephan Herrmann | 32fd38b | 2014-12-13 15:26:29 +0100 | [diff] [blame] | 125 | </documentation> |
| 126 | </annotation> |
| 127 | |
| 128 | </schema> |