private IPredicateRule[] createRuleSet(Rule rule) {
List rules = new ArrayList();
ColoringEditorTools.add(rule, rules, new ITokenFactory() {
public IToken makeToken(Type type) {
return new CToken(type);
}
});
return (IPredicateRule[]) rules.toArray(new IPredicateRule[rules.size()]);
}