Package at.bestsolution.efxclipse.text.jface.rules

Examples of at.bestsolution.efxclipse.text.jface.rules.Token


  protected List<IRule> createRules() {

    List<IRule> rules= new ArrayList<IRule>();

    // Add rule for character constants.
    Token token= getToken(ResourceProvider.JAVA_STRING);
    rules.add(new SingleLineRule("'", "'", token, '\\')); //$NON-NLS-2$ //$NON-NLS-1$


    Token defaultToken= getToken(ResourceProvider.JAVA_DEFAULT);
   
    // Add generic whitespace rule.
    rules.add(new WhitespaceRule(new JavaWhitespaceDetector(), defaultToken));

//    String version= getPreferenceStore().getString(SOURCE_VERSION);
View Full Code Here


  protected List<IRule> createRules() {

    List<IRule> list= new ArrayList<IRule>();

    // Add rule for tags.
    Token token= getToken(ResourceProvider.JAVADOC_TAG);
    list.add(new TagRule(token));


    // Add rule for HTML comments
    WordRule wordRule= new WordRule(new HTMLCommentDetector(), token);
View Full Code Here

  public IToken nextToken() {
    return super.nextToken();
  }

  private void addToken(String tokenKey) {
    fTokenMap.put(tokenKey, new Token(createTextAttribute(tokenKey)));
  }
View Full Code Here

  /*
   * @see AbstractJavaScanner#createRules()
   */
  protected List<IRule> createRules() {
    List<IRule> list= new ArrayList<IRule>();
    Token defaultToken= getToken(fDefaultTokenProperty);

    List<WordMatcher> matchers= createMatchers();
    if (matchers.size() > 0) {
      CombinedWordRule combinedWordRule= new CombinedWordRule(new AtJavaIdentifierDetector(), defaultToken);
      for (int i= 0, n= matchers.size(); i < n; i++)
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.text.jface.rules.Token

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.