comparison dwtx/jface/text/templates/TemplateTranslator.d @ 145:02cd5f1224d3

...
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 22:31:00 +0200
parents 6dcb0baaa031
children 000f9136b8f7
comparison
equal deleted inserted replaced
144:16a71f577815 145:02cd5f1224d3
153 * @param template the template to translate. 153 * @param template the template to translate.
154 * @return returns the template buffer corresponding to the string 154 * @return returns the template buffer corresponding to the string
155 * @see #getErrorMessage() 155 * @see #getErrorMessage()
156 * @throws TemplateException if translation failed 156 * @throws TemplateException if translation failed
157 */ 157 */
158 public TemplateBuffer translate(Template template) { 158 public TemplateBuffer translate(Template template_) {
159 return parse(template.getPattern()); 159 return parse(template_.getPattern());
160 } 160 }
161 161
162 /** 162 /**
163 * Translates a template string to <code>TemplateBuffer</code>. <code>null</code> is 163 * Translates a template string to <code>TemplateBuffer</code>. <code>null</code> is
164 * returned if there was an error. <code>getErrorMessage()</code> retrieves the associated 164 * returned if there was an error. <code>getErrorMessage()</code> retrieves the associated