Package org.eclipse.jface.text.rules

Examples of org.eclipse.jface.text.rules.WhitespaceRule


    // Add rule for strings and character constants.
    rules.add(new SingleLineRule("\"", "\"", string, '\\')); //$NON-NLS-2$ //$NON-NLS-1$
    rules.add(new SingleLineRule("'", "'", string, '\\')); //$NON-NLS-2$ //$NON-NLS-1$

    // Add generic whitespace rule.
    rules.add(new WhitespaceRule(new ProcessingWhitespaceDetector()));

    // Add a rule for each keyword explaining how to color it
    WordRule wordRule= new WordRule(new ProcessingWordDetector(), other);
    for (int i= 0; i < fgKeywords1.length; i++)
      wordRule.addWord(fgKeywords1[i], keyword1);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.rules.WhitespaceRule

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.