1 19 20 package org.netbeans.modules.web.core.xmlsyntax; 21 22 import org.netbeans.editor.BaseTokenID; 23 import org.netbeans.editor.TokenContext; 24 import org.netbeans.editor.TokenContextPath; 25 26 import org.netbeans.modules.xml.text.api.XMLDefaultTokenContext; 27 28 import org.openide.ErrorManager; 29 30 35 @Deprecated () 36 public class JspXMLTokenContext extends TokenContext { 37 38 public static final int ERROR_ID = 1; 40 41 42 public static final BaseTokenID ERROR = new BaseTokenID("error", ERROR_ID); 44 public static final JspXMLTokenContext context = new JspXMLTokenContext(); 46 47 public static final TokenContextPath contextPath = context.getContextPath(); 48 49 50 public static final TokenContextPath xmlContextPath 51 = context.getContextPath(XMLDefaultTokenContext.contextPath); 52 53 private JspXMLTokenContext() { 54 super("jsp-", new TokenContext[] { XMLDefaultTokenContext.context 56 } 57 ); 58 59 try { 60 addDeclaredTokenIDs(); 61 } catch (Exception e) { 62 ErrorManager.getDefault ().notify(ErrorManager.INFORMATIONAL, e); 63 } 64 65 } 66 67 } 68 69 | Popular Tags |