Package org.eclipse.php.formatter.core

Examples of org.eclipse.php.formatter.core.ReplaceEdit


  }

  private String applyChanges(String content, List<?> changes) {
    StringBuffer result = new StringBuffer(content);
    for (int i = changes.size() - 1; i >= 0; i--) {
      ReplaceEdit replace = (ReplaceEdit) changes.get(i);
      result = result.replace(replace.offset, replace.getEnd(),
          replace.content);
    }
    return result.toString();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.formatter.core.ReplaceEdit

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.