Package org.eclipse.jst.jsp.core.internal.java

Examples of org.eclipse.jst.jsp.core.internal.java.JSPTranslationUtil


    final TypedPosition partition = (TypedPosition) fPartitions.removeFirst();

    if (document != null && partition != null) {
      try {

        JSPTranslationUtil translationUtil = new JSPTranslationUtil(document);
        ICompilationUnit cu = translationUtil.getCompilationUnit();
        if (cu != null) {
          String cuSource = cu.getSource();
          TextEdit textEdit = formatString(CodeFormatter.K_COMPILATION_UNIT, cuSource, 0, TextUtilities.getDefaultLineDelimiter(document), getPreferences());

          TextEdit jspEdit = translationUtil.getTranslation().getJspEdit(textEdit);
          if (jspEdit != null && jspEdit.hasChildren())
            jspEdit.apply(document);
        }

      }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsp.core.internal.java.JSPTranslationUtil

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.