/* * Created on May 14, 2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package CDBuilder.couplingSyntaxEditor; import org.eclipse.jface.text.rules.IWordDetector; /** * This class checks to see if the character is a word by * using java's Character.isJavaIdentifierPart & Character.isJavaIdentifierStart * @author Lucie Zhao and Sherwin Sim * @version 1 May - August 2003 */ public class cseWordDetector implements IWordDetector { /** * Checks to see if the character is part of a word * @param character the character that is being checked * @return true if the character is a valid java identifier part */ public boolean isWordPart(char character) { return (Character.isJavaIdentifierPart(character)); } /** * Checks to see if the character is the start of a word * @param character the character that is being checked * @return true if the character is a valid java identifier start */ public boolean isWordStart(char character) { return(Character.isJavaIdentifierStart(character)); } }