Package org.eclipse.dltk.ui.templates

Examples of org.eclipse.dltk.ui.templates.IScriptTemplateIndenter


            .getDefaultLineDelimiter(getDocument());
      } else {
        delimeter = fLineDelimiter;
      }
      final String indent = calculateIndent(getDocument(), getStart());
      final IScriptTemplateIndenter indenter = getIndenter();
      final StringBuffer buffer = new StringBuffer(lines[0]);

      // Except first line
      for (int i = 1; i < lines.length; i++) {
        buffer.append(delimeter);
        indenter.indentLine(buffer, indent, lines[i]);
      }

      template = new Template(template.getName(),
          template.getDescription(), template.getContextTypeId(),
          buffer.toString(), template.isAutoInsertable());
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.ui.templates.IScriptTemplateIndenter

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.