org.eclipse.xtend.ide.contentassist
Class WhitespaceHelper

java.lang.Object
  extended by org.eclipse.xtend.ide.contentassist.WhitespaceHelper

public class WhitespaceHelper
extends java.lang.Object

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
WhitespaceHelper()
           
 
Method Summary
protected  java.lang.String calculateLeadingWhitespace(org.eclipse.jface.text.IDocument document)
           
protected  java.lang.String calculateTrailingWhitespace(org.eclipse.jface.text.IDocument document)
           
 java.lang.String getPrefix()
           
 java.lang.String getSuffix()
           
 int getTotalLength()
           
 int getTotalOffset()
           
 void initialize(org.eclipse.jface.text.IDocument document, int offset, int length, boolean ensureEmptyLinesAround)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhitespaceHelper

public WhitespaceHelper()
Method Detail

initialize

public void initialize(org.eclipse.jface.text.IDocument document,
                       int offset,
                       int length,
                       boolean ensureEmptyLinesAround)

getTotalOffset

public int getTotalOffset()

getTotalLength

public int getTotalLength()

getPrefix

public java.lang.String getPrefix()

getSuffix

public java.lang.String getSuffix()

calculateLeadingWhitespace

protected java.lang.String calculateLeadingWhitespace(org.eclipse.jface.text.IDocument document)

calculateTrailingWhitespace

protected java.lang.String calculateTrailingWhitespace(org.eclipse.jface.text.IDocument document)