1 11 12 package org.eclipse.jdt.internal.ui.text; 13 14 15 import java.util.List ; 16 import org.eclipse.jface.preference.IPreferenceStore; 17 import org.eclipse.jdt.ui.text.IColorManager; 18 19 20 23 public final class SingleTokenJavaScanner extends AbstractJavaScanner{ 24 25 26 private String [] fProperty; 27 28 public SingleTokenJavaScanner(IColorManager manager, IPreferenceStore store, String property) { 29 super(manager, store); 30 fProperty= new String [] { property }; 31 initialize(); 32 } 33 34 37 protected String [] getTokenProperties() { 38 return fProperty; 39 } 40 41 44 protected List createRules() { 45 setDefaultReturnToken(getToken(fProperty[0])); 46 return null; 47 } 48 } 49 50 | Popular Tags |