modesteditor.core.util
Class ModestTextStyleProvider

java.lang.Object
  extended by modesteditor.core.util.ModestTextStyleProvider

public class ModestTextStyleProvider
extends java.lang.Object

A utility class to get colors and font styles for syntax highlighting.


Constructor Summary
ModestTextStyleProvider()
          Creates a new text style provider.
 
Method Summary
 void dispose()
          Disposes the colors allocated in the constructor.
 org.eclipse.jface.text.TextAttribute getDefaultStyle()
          Returns the colour and font style for dists in the editor.
 org.eclipse.jface.text.TextAttribute getDistStyle()
          Returns the colour and font style for dists in the editor.
 org.eclipse.jface.text.TextAttribute getKeywordStyle()
          Returns the colour and font style for keywords in the editor.
 org.eclipse.jface.text.TextAttribute getMultiLineCommentStyle()
          Returns the colour and font style for comments in the editor.
 org.eclipse.jface.text.TextAttribute getSingleLineCommentStyle()
           
 org.eclipse.jface.text.TextAttribute getTypeStyle()
          Returns the colour and font style for typedefs in the editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModestTextStyleProvider

public ModestTextStyleProvider()
Creates a new text style provider. Currently, a new provider is created for each MoDeST editor.

Method Detail

dispose

public void dispose()
Disposes the colors allocated in the constructor.


getMultiLineCommentStyle

public org.eclipse.jface.text.TextAttribute getMultiLineCommentStyle()
Returns the colour and font style for comments in the editor.


getSingleLineCommentStyle

public org.eclipse.jface.text.TextAttribute getSingleLineCommentStyle()

getKeywordStyle

public org.eclipse.jface.text.TextAttribute getKeywordStyle()
Returns the colour and font style for keywords in the editor.


getTypeStyle

public org.eclipse.jface.text.TextAttribute getTypeStyle()
Returns the colour and font style for typedefs in the editor.


getDistStyle

public org.eclipse.jface.text.TextAttribute getDistStyle()
Returns the colour and font style for dists in the editor.


getDefaultStyle

public org.eclipse.jface.text.TextAttribute getDefaultStyle()
Returns the colour and font style for dists in the editor.