1 11 package org.eclipse.jdt.internal.corext.template.java; 12 13 import org.eclipse.jface.text.templates.TemplateVariableType; 14 15 import org.eclipse.jdt.internal.corext.template.java.CompilationUnitCompletion.Variable; 16 17 import org.eclipse.jdt.internal.ui.text.template.contentassist.MultiVariable; 18 19 20 public final class JavaVariable extends MultiVariable { 21 private String fParamType; 22 23 public JavaVariable(TemplateVariableType type, String name, int[] offsets) { 24 super(type, name, offsets); 25 } 26 27 31 public String toString(Object object) { 32 if (object instanceof Variable) 33 return ((Variable) object).getName(); 34 return super.toString(object); 35 } 36 37 42 public String getParamType() { 43 return fParamType; 44 } 45 46 50 public void setParamType(String paramType) { 51 fParamType= paramType; 52 } 53 } 54 | Popular Tags |