Package org.emftext.access.resource

Examples of org.emftext.access.resource.IColorManager


   * To initialize the EMFTextTokenScanner. Must be called before the text to style will be styled.
   * @param sourceText the text to style
   */
  private void initTokenScanner(){ 
    sourceText = getSyntaxContent();
    IColorManager colorManager = metaInformation.createColorManager();
    tokenScanner = metaInformation.createTokenScanner(colorManager);
    IDocument doc = new Document(sourceText);
    int length = doc.getLength();
    tokenScanner.setRange(doc, 0, length);
  }
View Full Code Here

TOP

Related Classes of org.emftext.access.resource.IColorManager

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.