### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.ui Index: ui/org/eclipse/jdt/internal/ui/text/template/preferences/TemplateVariableProcessor.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/preferences/TemplateVariableProcessor.java,v retrieving revision 1.8 diff -u -r1.8 TemplateVariableProcessor.java --- ui/org/eclipse/jdt/internal/ui/text/template/preferences/TemplateVariableProcessor.java 23 Jun 2006 09:54:42 -0000 1.8 +++ ui/org/eclipse/jdt/internal/ui/text/template/preferences/TemplateVariableProcessor.java 23 May 2007 10:02:43 -0000 @@ -47,6 +47,8 @@ /** * Sets the context type. + * + * @param contextType the template context type */ public void setContextType(TemplateContextType contextType) { fContextType= contextType; @@ -54,6 +56,8 @@ /** * Gets the context type. + * + * @return the template context type */ public TemplateContextType getContextType() { return fContextType; @@ -125,7 +129,7 @@ if (start >= 2 && string.charAt(start - 1) == '{' && string.charAt(start - 2) == '$') return start - 2; - return end; + return start; } /*