org.radrails.rails.internal.ui.editors.css
Class CSSCodeScanner

java.lang.Object
  extended byorg.eclipse.jface.text.rules.RuleBasedScanner
      extended byorg.eclipse.jface.text.rules.BufferedRuleBasedScanner
          extended byorg.radrails.rails.internal.ui.editors.css.CSSCodeScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner, IEditorPropertyChangeListener, org.eclipse.jface.text.rules.ITokenScanner

public class CSSCodeScanner
extends org.eclipse.jface.text.rules.BufferedRuleBasedScanner
implements IEditorPropertyChangeListener

Scans the CSS code for matching rules and highlights correctly matched rules.

Version:
0.4.1
Author:
mbaumbach

Field Summary
 
Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner
EOF
 
Method Summary
 void applyPropertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
          Apply the property change as appropriate.
static CSSCodeScanner getInstance()
          Gets an instance of this class.
 
Methods inherited from class org.eclipse.jface.text.rules.BufferedRuleBasedScanner
read, setRange, unread
 
Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, nextToken, setDefaultReturnToken, setRules
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CSSCodeScanner getInstance()
Gets an instance of this class.

Returns:
An instance of a CSSCodeScanner.

applyPropertyChange

public void applyPropertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Description copied from interface: IEditorPropertyChangeListener
Apply the property change as appropriate.

Specified by:
applyPropertyChange in interface IEditorPropertyChangeListener
Parameters:
event - the event describing the property change
See Also:
IEditorPropertyChangeListener.applyPropertyChange(org.eclipse.jface.util.PropertyChangeEvent)