Search in sources :

Example 1 with TemplateEngine

use of org.eclipse.jdt.internal.ui.text.template.contentassist.TemplateEngine in project che by eclipse.

the class TemplateCompletionProposalComputer method createTemplateEngine.

private static TemplateEngine createTemplateEngine(ContextTypeRegistry templateContextRegistry, String contextTypeId) {
    TemplateContextType contextType = templateContextRegistry.getContextType(contextTypeId);
    Assert.isNotNull(contextType);
    return new TemplateEngine(contextType);
}
Also used : TemplateEngine(org.eclipse.jdt.internal.ui.text.template.contentassist.TemplateEngine) TemplateContextType(org.eclipse.jface.text.templates.TemplateContextType)

Aggregations

TemplateEngine (org.eclipse.jdt.internal.ui.text.template.contentassist.TemplateEngine)1 TemplateContextType (org.eclipse.jface.text.templates.TemplateContextType)1