View | Details | Raw Unified | Return to bug 309787
Collapse All | Expand All

(-)model/org/eclipse/jdt/core/ToolFactory.java (-6 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 86-92 Link Here
86
	 * @return an instance of a code formatter
86
	 * @return an instance of a code formatter
87
	 * @see ICodeFormatter
87
	 * @see ICodeFormatter
88
	 * @see ToolFactory#createDefaultCodeFormatter(Map)
88
	 * @see ToolFactory#createDefaultCodeFormatter(Map)
89
	 * @deprecated Use {@link #createCodeFormatter(Map)} instead. Extension point is discontinued
89
	 * @deprecated The extension point has been deprecated, use {@link #createCodeFormatter(Map)} instead.
90
	 */
90
	 */
91
	public static ICodeFormatter createCodeFormatter(){
91
	public static ICodeFormatter createCodeFormatter(){
92
92
Lines 344-352 Link Here
344
	}
344
	}
345
345
346
	/**
346
	/**
347
	 * Create an instance of the built-in code formatter. A code formatter implementation can be contributed via the
347
	 * Create an instance of the default code formatter.
348
	 * extension point "org.eclipse.jdt.core.codeFormatter". If unable to find a registered extension, the factory will
349
	 * default to using the default code formatter.
350
	 *
348
	 *
351
	 * @param options - the options map to use for formatting with the default code formatter. Recognized options
349
	 * @param options - the options map to use for formatting with the default code formatter. Recognized options
352
	 * 	are documented on <code>JavaCore#getDefaultOptions()</code>. If set to <code>null</code>, then use
350
	 * 	are documented on <code>JavaCore#getDefaultOptions()</code>. If set to <code>null</code>, then use
Lines 355-361 Link Here
355
	 * @see ICodeFormatter
353
	 * @see ICodeFormatter
356
	 * @see ToolFactory#createCodeFormatter()
354
	 * @see ToolFactory#createCodeFormatter()
357
	 * @see JavaCore#getOptions()
355
	 * @see JavaCore#getOptions()
358
	 * @deprecated Use {@link #createCodeFormatter(Map)} instead
356
	 * @deprecated Use {@link #createCodeFormatter(Map)} instead but note the different options
359
	 */
357
	 */
360
	public static ICodeFormatter createDefaultCodeFormatter(Map options){
358
	public static ICodeFormatter createDefaultCodeFormatter(Map options){
361
		if (options == null) options = JavaCore.getOptions();
359
		if (options == null) options = JavaCore.getOptions();
(-)schema/codeFormatter.exsd (-24 / +13 lines)
Lines 1-6 Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.jdt.core">
3
<schema targetNamespace="org.eclipse.jdt.core" xmlns="http://www.w3.org/2001/XMLSchema">
4
<annotation>
4
<annotation>
5
      <appInfo>
5
      <appInfo>
6
         <meta.schema plugin="org.eclipse.jdt.core" id="codeFormatter" name="Code Formatters"/>
6
         <meta.schema plugin="org.eclipse.jdt.core" id="codeFormatter" name="Code Formatters"/>
Lines 11-16 Link Here
11
   </annotation>
11
   </annotation>
12
12
13
   <element name="extension">
13
   <element name="extension">
14
      <annotation>
15
         <appInfo>
16
            <meta.element deprecated="true" />
17
         </appInfo>
18
      </annotation>
14
      <complexType>
19
      <complexType>
15
         <sequence>
20
         <sequence>
16
            <element ref="codeFormatter" minOccurs="0" maxOccurs="unbounded"/>
21
            <element ref="codeFormatter" minOccurs="0" maxOccurs="unbounded"/>
Lines 68-111 Link Here
68
         <meta.section type="examples"/>
73
         <meta.section type="examples"/>
69
      </appInfo>
74
      </appInfo>
70
      <documentation>
75
      <documentation>
71
         Example of an implementation of &lt;code&gt;ICodeFormatter&lt;/code&gt;:  &lt;pre&gt;                                                                       
76
         Example of an implementation of &lt;code&gt;ICodeFormatter&lt;/code&gt;:  &lt;pre&gt;                                                                       
72
&lt;extension point=&quot;org.eclipse.jdt.core.codeFormatter&quot;&gt;            
77
&lt;extension point=&quot;org.eclipse.jdt.core.codeFormatter&quot;&gt;            
73
   &lt;codeFormatter                                                                                              
78
   &lt;codeFormatter                                                                                              
74
      class=&quot;com.example.MyCodeFormatter&quot;/&gt;                           
79
      class=&quot;com.example.MyCodeFormatter&quot;/&gt;                           
75
&lt;/extension&gt;
80
&lt;/extension&gt;
76
&lt;/pre&gt;
81
&lt;/pre&gt;
77
      </documentation>
82
      </documentation>
78
   </annotation>
83
   </annotation>
79
84
80
   <annotation>
81
      <appInfo>
82
         <meta.section type="apiInfo"/>
83
      </appInfo>
84
      <documentation>
85
         
86
      </documentation>
87
   </annotation>
88
85
89
   <annotation>
90
      <appInfo>
91
         <meta.section type="implementation"/>
92
      </appInfo>
93
      <documentation>
94
         
95
      </documentation>
96
   </annotation>
97
86
98
   <annotation>
87
   <annotation>
99
      <appInfo>
88
      <appInfo>
100
         <meta.section type="copyright"/>
89
         <meta.section type="copyright"/>
101
      </appInfo>
90
      </appInfo>
102
      <documentation>
91
      <documentation>
103
         Copyright (c) 2000, 2004 IBM Corporation and others.&lt;br&gt;
92
         Copyright (c) 2000, 2010 IBM Corporation and others.&lt;br&gt;
104
All rights reserved. This program and the accompanying materials are made 
93
All rights reserved. This program and the accompanying materials are made 
105
available under the terms of the Eclipse Public License v1.0 which accompanies 
94
available under the terms of the Eclipse Public License v1.0 which accompanies 
106
this distribution, and is available at &lt;a
95
this distribution, and is available at &lt;a
107
href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
96
href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
108
     </documentation>
97
      </documentation>
109
   </annotation>
98
   </annotation>
110
99
111
</schema>
100
</schema>

Return to bug 309787