org.eclipse.xtext.formatting.impl
Class OneWhitespaceFormatter

java.lang.Object
  extended by org.eclipse.xtext.formatting.impl.AbstractFormatter
      extended by org.eclipse.xtext.formatting.impl.BaseFormatter
          extended by org.eclipse.xtext.formatting.impl.OneWhitespaceFormatter
All Implemented Interfaces:
IFormatter

public class OneWhitespaceFormatter
extends BaseFormatter

Author:
Moritz Eysholdt - Initial contribution and API

Nested Class Summary
protected  class OneWhitespaceFormatter.OneWhitespaceFormatterStream
           
 
Field Summary
 
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter
grammar
 
Constructor Summary
OneWhitespaceFormatter()
           
 
Method Summary
 ITokenStream createFormatterStream(java.lang.String initalIndentation, ITokenStream outputStream, boolean preserveWhitespaces)
           
 
Methods inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter
getWSRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneWhitespaceFormatter

public OneWhitespaceFormatter()
Method Detail

createFormatterStream

public ITokenStream createFormatterStream(java.lang.String initalIndentation,
                                          ITokenStream outputStream,
                                          boolean preserveWhitespaces)
Specified by:
createFormatterStream in interface IFormatter
Overrides:
createFormatterStream in class AbstractFormatter