1 19 20 package org.netbeans.editor.ext.plain; 21 22 import org.netbeans.editor.BaseTokenID; 23 import org.netbeans.editor.BaseImageTokenID; 24 import org.netbeans.editor.TokenContext; 25 import org.netbeans.editor.TokenContextPath; 26 import org.netbeans.editor.Utilities; 27 28 34 35 public class PlainTokenContext extends TokenContext { 36 37 public static final int TEXT_ID = 1; 39 public static final int EOL_ID = 2; 40 41 public static final BaseTokenID TEXT 42 = new BaseTokenID("text", TEXT_ID); 44 public static final BaseImageTokenID EOL 45 = new BaseImageTokenID("EOL", EOL_ID, "\n"); 47 public static final PlainTokenContext context = new PlainTokenContext(); 49 50 public static final TokenContextPath contextPath = context.getContextPath(); 51 52 private PlainTokenContext() { 53 super("format-"); 55 try { 56 addDeclaredTokenIDs(); 57 } catch (Exception e) { 58 Utilities.annotateLoggable(e); 59 } 60 61 } 62 63 } 64 | Popular Tags |