Package org.eclipse.php.internal.ui.editor.templates

Examples of org.eclipse.php.internal.ui.editor.templates.PhpTemplateContext


    if (template != null) {
      IDocument document = new Document();
      DocumentTemplateContext context = getContext(contextTypeRegistry,
          template, containerName, fileName, document);
      if (context instanceof PhpTemplateContext) {
        PhpTemplateContext phpTemplateContext = (PhpTemplateContext) context;
        phpTemplateContext.setLineDelimiter(lineDelimiter);
      }
      TemplateBuffer buffer = null;
      try {
        buffer = context.evaluate(template);
      } catch (BadLocationException e) {
View Full Code Here


  }

  @Override
  public ScriptTemplateContext createContext(IDocument document, int offset,
      int length, ISourceModule sourceModule) {
    return new PhpTemplateContext(this, document, offset, length,
        sourceModule);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.editor.templates.PhpTemplateContext

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.