public class JavaFormatter extends AbstractCacheableFormatter implements Formatter
encoding, log| Constructor and Description |
|---|
JavaFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
doFormat(String code,
LineEnding ending) |
void |
init(Map<String,String> options,
ConfigurationSource cfg)
Initialize the
CodeFormatter instance to be used by this component. |
boolean |
isInitialized()
return true if this formatter have been initialized
|
formatFile, initCfgclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatFilepublic void init(Map<String,String> options, ConfigurationSource cfg)
FormatterCodeFormatter instance to be used by this component.init in interface Formatterinit in class AbstractCacheableFormatterpublic String doFormat(String code, LineEnding ending) throws IOException, org.eclipse.jface.text.BadLocationException
doFormat in class AbstractCacheableFormatterIOExceptionorg.eclipse.jface.text.BadLocationExceptionpublic boolean isInitialized()
FormatterisInitialized in interface FormatterCopyright © 2010–2018. All rights reserved.