1 11 package org.eclipse.jface.text.templates; 12 13 14 22 public class SimpleTemplateVariableResolver extends TemplateVariableResolver { 23 24 25 private String fEvaluationString; 26 27 30 protected SimpleTemplateVariableResolver(String type, String description) { 31 super(type, description); 32 } 33 34 39 public final void setEvaluationString(String evaluationString) { 40 fEvaluationString= evaluationString; 41 } 42 43 46 protected String resolve(TemplateContext context) { 47 return fEvaluationString; 48 } 49 50 57 protected boolean isUnambiguous(TemplateContext context) { 58 return true; 59 } 60 } 61 | Popular Tags |