org.radrails.db.internal.ui.editors.yml
Class NameRule

java.lang.Object
  extended byorg.radrails.db.internal.ui.editors.yml.NameRule
All Implemented Interfaces:
org.eclipse.jface.text.rules.IRule

public class NameRule
extends java.lang.Object
implements org.eclipse.jface.text.rules.IRule

Rule for detecting environment and property names in the database.yml file.

Author:
mkent

Constructor Summary
NameRule(org.eclipse.jface.text.rules.IToken token)
          Constructor.
NameRule(org.eclipse.jface.text.rules.IToken token, int columnConstraint)
          Constructor.
 
Method Summary
 org.eclipse.jface.text.rules.IToken evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameRule

public NameRule(org.eclipse.jface.text.rules.IToken token)
Constructor. Column constraint defaults to undefined.

Parameters:
token - the token to return on success

NameRule

public NameRule(org.eclipse.jface.text.rules.IToken token,
                int columnConstraint)
Constructor.

Parameters:
token - the token to return on success
columnConstraint - the column that the name must start in
Method Detail

evaluate

public org.eclipse.jface.text.rules.IToken evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
Specified by:
evaluate in interface org.eclipse.jface.text.rules.IRule