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(); |