List rules = new ArrayList();
String colorName = colorManager.colorForType(rule.getDefaultTokenType());
IToken defaultToken = newToken(colorName);
scanner.setDefaultReturnToken(defaultToken);
ColoringEditorTools.add(rule, rules, new ITokenFactory() {
public IToken makeToken(Type type) {
String color = colorManager.colorForType(type.getColor());
return newToken(color);
}
});