Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.css.editors
Class CSSFormatter  view CSSFormatter download CSSFormatter.java

java.lang.Object
  extended bycom.port80.eclipse.css.editors.CSSFormatter

public class CSSFormatter
extends java.lang.Object

Modified from the XMLFormatter. Some tags in HTML do not indent.


Field Summary
private static boolean CHECK
           
private static boolean DEBUG
           
private  CSSEditorConfiguration fConfig
           
private  CSSEditor fEditor
           
private  int fIndentLevel
           
private  java.lang.String fInput
           
private  java.lang.StringBuffer fLine
           
private  int fLineWidth
           
private  java.lang.StringBuffer fResult
           
private  java.lang.String fTab
           
private  org.eclipse.jface.text.source.SourceViewer fViewer
           
private  boolean isCompact
           
private static java.lang.String NAME
           
private static boolean VERBOSE
           
 
Constructor Summary
CSSFormatter(CSSEditorConfiguration cf, org.eclipse.jface.text.source.SourceViewer viewer)
          Constructor for XMLFormatter.
 
Method Summary
 java.lang.String format(java.lang.String string, int indentlevel, int[] positions, java.lang.String lineSeparator, boolean compact)
          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

CHECK

private static final boolean CHECK
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE

fConfig

private CSSEditorConfiguration fConfig

fViewer

private org.eclipse.jface.text.source.SourceViewer fViewer

fEditor

private CSSEditor fEditor

fInput

private java.lang.String fInput

fResult

private java.lang.StringBuffer fResult

fLine

private java.lang.StringBuffer fLine

fIndentLevel

private int fIndentLevel

fTab

private java.lang.String fTab

fLineWidth

private int fLineWidth

isCompact

private boolean isCompact
Constructor Detail

CSSFormatter

public CSSFormatter(CSSEditorConfiguration cf,
                    org.eclipse.jface.text.source.SourceViewer viewer)
Constructor for XMLFormatter.

Method Detail

format

public java.lang.String format(java.lang.String string,
                               int indentlevel,
                               int[] positions,
                               java.lang.String lineSeparator,
                               boolean compact)
Formats the String sourceString, and returns a string containing the formatted version.