org.eclipse.xtext.ui.editor.syntaxcoloring
Class AbstractTokenScanner

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractTokenScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ITokenScanner
Direct Known Subclasses:
DefaultTokenScanner, TokenScanner

public abstract class AbstractTokenScanner
extends java.lang.Object
implements org.eclipse.jface.text.rules.ITokenScanner

Author:
Jan Köhnlein - Initial contribution and API, Dennis Hübner - Initial contribution and API

Constructor Summary
AbstractTokenScanner()
           
 
Method Summary
protected  org.eclipse.jface.text.TextAttribute getAttribute(java.lang.String id)
           
 ITextAttributeProvider getTextAttributeProvider()
           
 void setTextAttributeProvider(ITextAttributeProvider textAttributeProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.text.rules.ITokenScanner
getTokenLength, getTokenOffset, nextToken, setRange
 

Constructor Detail

AbstractTokenScanner

public AbstractTokenScanner()
Method Detail

setTextAttributeProvider

public void setTextAttributeProvider(ITextAttributeProvider textAttributeProvider)

getTextAttributeProvider

public ITextAttributeProvider getTextAttributeProvider()

getAttribute

protected org.eclipse.jface.text.TextAttribute getAttribute(java.lang.String id)