1 19 20 package org.netbeans.modules.web.core.syntax.deprecated; 21 22 import org.netbeans.editor.BaseTokenCategory; 23 import org.netbeans.editor.TokenCategory; 24 import org.netbeans.editor.TokenContextPath; 25 import org.netbeans.editor.BaseTokenID; 26 import org.openide.ErrorManager; 27 28 36 37 public class JspDirectiveTokenContext extends JspTagTokenContext { 38 39 41 public static final int TAG_CATEGORY_ID = WHITESPACE_ID + 1; 43 44 public static final TokenCategory tokenCategory = new BaseTokenCategory("directive", TAG_CATEGORY_ID); 47 public static final BaseTokenID TEXT = new BaseTokenID("text", TEXT_ID, tokenCategory); public static final BaseTokenID ERROR = new BaseTokenID("error", ERROR_ID, tokenCategory); public static final BaseTokenID TAG = new BaseTokenID("tag-directive", TAG_ID, tokenCategory); public static final BaseTokenID SYMBOL = new BaseTokenID("symbol", SYMBOL_ID, tokenCategory); public static final BaseTokenID SYMBOL2 = new BaseTokenID("scriptlet-delimiter", SYMBOL2_ID, tokenCategory); public static final BaseTokenID COMMENT = new BaseTokenID("comment", COMMENT_ID, tokenCategory); public static final BaseTokenID ATTRIBUTE = new BaseTokenID("attribute-name", ATTRIBUTE_ID, tokenCategory); public static final BaseTokenID ATTR_VALUE = new BaseTokenID("attribute-value", ATTR_VALUE_ID, tokenCategory); public static final BaseTokenID EOL = new BaseTokenID("EOL", EOL_ID, tokenCategory); public static final BaseTokenID AFTER_UNEXPECTED_LT = new BaseTokenID("AFTER_UNEXPECTED_LT", AFTER_UNEXPECTED_LT_ID, tokenCategory); public static final BaseTokenID WHITESPACE = new BaseTokenID("whitespace", WHITESPACE_ID, tokenCategory); 60 public static final JspDirectiveTokenContext context = new JspDirectiveTokenContext(); 62 63 public static final TokenContextPath contextPath = context.getContextPath(); 64 65 JspDirectiveTokenContext() { 66 super(); 68 try { 69 addDeclaredTokenIDs(); 70 } catch (Exception e) { 71 ErrorManager.getDefault ().notify (ErrorManager.INFORMATIONAL, e); 72 } 73 74 } 75 76 } 77 78 | Popular Tags |