KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > eclipse > console > editors > HQLPartitionScanner


1 package org.hibernate.eclipse.console.editors;
2
3 import org.eclipse.jface.text.rules.*;
4
5 public class HQLPartitionScanner extends RuleBasedPartitionScanner {
6     public final static String JavaDoc HQL_DEFAULT = "__hql_default";
7     public final static String JavaDoc HQL_COMMENT = "__xml_comment";
8     public final static String JavaDoc HQL_TAG = "__hql_tag";
9
10     public HQLPartitionScanner() {
11
12         IToken xmlComment = new Token(HQL_COMMENT);
13         IToken tag = new Token(HQL_TAG);
14
15         IPredicateRule[] rules = new IPredicateRule[1];
16
17         rules[0] = new MultiLineRule("/*", "*/", xmlComment);
18         
19         setPredicateRules(rules);
20     }
21 }
22
Popular Tags