org.sintef.mofscript.editor
Class WordDetector

java.lang.Object
  extended by org.sintef.mofscript.editor.WordDetector
All Implemented Interfaces:
org.eclipse.jface.text.rules.IWordDetector

public class WordDetector
extends java.lang.Object
implements org.eclipse.jface.text.rules.IWordDetector

A word detector based on Java identifiers

Author:
jol

Constructor Summary
WordDetector()
           
 
Method Summary
 boolean isWordPart(char character)
           
 boolean isWordStart(char character)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordDetector

public WordDetector()
Method Detail

isWordPart

public boolean isWordPart(char character)
Specified by:
isWordPart in interface org.eclipse.jface.text.rules.IWordDetector
Parameters:
character -
Returns:

isWordStart

public boolean isWordStart(char character)
Specified by:
isWordStart in interface org.eclipse.jface.text.rules.IWordDetector
Parameters:
character -
Returns:
if a character is word start