public class JavascriptFormatter extends AbstractCacheableFormatter implements Formatter
encoding, log
Constructor and Description |
---|
JavascriptFormatter() |
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, initCfg
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
formatFile
public void init(Map<String,String> options, ConfigurationSource cfg)
Formatter
CodeFormatter
instance to be used by this component.init
in interface Formatter
init
in class AbstractCacheableFormatter
public String doFormat(String code, LineEnding ending) throws IOException, org.eclipse.jface.text.BadLocationException
doFormat
in class AbstractCacheableFormatter
IOException
org.eclipse.jface.text.BadLocationException
public boolean isInitialized()
Formatter
isInitialized
in interface Formatter
Copyright © 2010–2017. All rights reserved.