|
|||||||||
| Home >> All >> com >> port80 >> eclipse >> xml >> [ editors overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.port80.eclipse.xml.editors
Class XMLFormatter

java.lang.Objectcom.port80.eclipse.xml.editors.XMLFormatter
- public class XMLFormatter
- extends java.lang.Object
| Nested Class Summary | |
(package private) static class |
XMLFormatter.CustomDocumentScanner
|
(package private) static interface |
XMLFormatter.CustomHandler
|
(package private) static class |
XMLFormatter.CustomXmlParserConfiguration
Hack to fix missing endDTD() call. |
(package private) static class |
XMLFormatter.Element
|
(package private) static class |
XMLFormatter.XMLContentHandler
An XMLContentHanlder that format XML source while parsing. |
| Field Summary | |
private static boolean |
DEBUG
|
private XMLEditorConfiguration |
fConfig
|
private org.eclipse.jface.preference.IPreferenceStore |
fPreferences
|
private org.eclipse.jface.text.source.ISourceViewer |
fViewer
|
private static java.lang.String |
NAME
|
private static boolean |
TRACE
|
| Constructor Summary | |
XMLFormatter(XMLEditorConfiguration cf,
org.eclipse.jface.text.source.ISourceViewer viewer)
Constructor for XMLFormatter. |
|
| Method Summary | |
java.lang.String |
format(java.lang.String string,
int indentationLevel,
int[] positions,
java.lang.String line_separator,
boolean compact)
Format routine with custom SAXParser. |
private int |
xmlDeclaration(java.lang.StringBuffer ret,
java.lang.String input)
|
private void |
xmlProlog(java.lang.StringBuffer ret,
java.lang.String input,
java.lang.String line_separator)
Formats the String sourceString,
and returns a string containing the formatted version. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
TRACE
private static final boolean TRACE
- See Also:
- Constant Field Values
fConfig
private XMLEditorConfiguration fConfig
fViewer
private org.eclipse.jface.text.source.ISourceViewer fViewer
fPreferences
private org.eclipse.jface.preference.IPreferenceStore fPreferences
| Constructor Detail |
XMLFormatter
public XMLFormatter(XMLEditorConfiguration cf, org.eclipse.jface.text.source.ISourceViewer viewer)
- Constructor for XMLFormatter.
| Method Detail |
xmlProlog
private void xmlProlog(java.lang.StringBuffer ret, java.lang.String input, java.lang.String line_separator)
- Formats the String
sourceString, and returns a string containing the formatted version.
xmlDeclaration
private int xmlDeclaration(java.lang.StringBuffer ret, java.lang.String input)
format
public java.lang.String format(java.lang.String string, int indentationLevel, int[] positions, java.lang.String line_separator, boolean compact)
- Format routine with custom SAXParser.
|
|||||||||
| Home >> All >> com >> port80 >> eclipse >> xml >> [ editors overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.port80.eclipse.xml.editors.XMLFormatter