Package org.jboss.ide.eclipse.freemarker.lang

Examples of org.jboss.ide.eclipse.freemarker.lang.SyntaxMode


  @Override
  public void setPartialRange(IDocument document, int offset, int length, String contentType, int partitionOffset) {
    if (offset == 0) {
      /* let us believe that offset == 0 is exactly "the beginning" of the document
       * where the [#ftl] or <#ftl> directive can only be located */
      SyntaxMode newMode = DocumentProvider.findMode(document);
      if (newMode != this.syntaxMode) {
        syntaxModeChanged(newMode);
        /* if the syntaxMode has really changed we should somehow trigger
         * the reparsing of the whole document. Not sure if expanding
         * offset and length to the whole document is safe enough */
 
View Full Code Here


      // FIXME: Add translation
      // "Rebuilding FreeMarker model of <filename>"
      monitor.beginTask("", doc.getLength()); //$NON-NLS-1$
    }
    ensureItemParsersInitilized();
    final SyntaxMode newMode = DocumentProvider.findMode(doc);
    int index = 0;
    List<ITypedRegion> regions = new ArrayList<ITypedRegion>(64);
    try {
      while (index < doc.getLength()) {
        if (canceled()) {
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.freemarker.lang.SyntaxMode

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.