rules.add(fVersionedWordRule); }
rules.add(fVersionedWordRule);
	protected List createRules() {						List rules= new ArrayList();						// Add rule for character constants.		Token token= getToken(IJavaColorConstants.JAVA_STRING);		rules.add(new SingleLineRule("'", "'", token, '\\')); //$NON-NLS-2$ //$NON-NLS-1$								// Add generic whitespace rule.		rules.add(new WhitespaceRule(new JavaWhitespaceDetector()));						// Add word rule for new keywords, 4077		Object version= null;		try {			version= JavaCore.getOptions().get(SOURCE_VERSION);		} catch (NullPointerException x) {			// plugin not initialized - happens in test code		}				if (version instanceof String) {			token= getToken(IJavaColorConstants.JAVA_DEFAULT);			fVersionedWordRule= new VersionedWordRule(new JavaWordDetector(), token, "1.4", true, (String) version); //$NON-NLS-1$						token= getToken(IJavaColorConstants.JAVA_KEYWORD);			for (int i=0; i<fgNewKeywords.length; i++)				fVersionedWordRule.addWord(fgNewKeywords[i], token);			rules.add(fVersionedWordRule);		}		// Add rule for operators and brackets		token= getToken(IJavaColorConstants.JAVA_OPERATOR);		rules.add(new OperatorRule(token));				// Add word rule for method names.		token= getToken(IJavaColorConstants.JAVA_METHOD_NAME);		rules.add(new MethodNameRule(new JavaWordDetector(), token));				// Add word rule for keywords, types, and constants.		token= getToken(IJavaColorConstants.JAVA_DEFAULT);		WordRule wordRule= new WordRule(new JavaWordDetector(), token);				token= getToken(IJavaColorConstants.JAVA_KEYWORD);		for (int i=0; i<fgKeywords.length; i++)			wordRule.addWord(fgKeywords[i], token);		for (int i=0; i<fgTypes.length; i++)			wordRule.addWord(fgTypes[i], token);		for (int i=0; i<fgConstants.length; i++)			wordRule.addWord(fgConstants[i], token);					rules.add(wordRule);				setDefaultReturnToken(getToken(IJavaColorConstants.JAVA_DEFAULT));		return rules;	}