Mercurial > projects > dwt-addons
diff dwtx/jface/text/templates/TemplateTranslator.d @ 136:6dcb0baaa031
Regex removal of throws decls, some instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:20:40 +0200 |
parents | 51e6e63f930e |
children | 02cd5f1224d3 |
line wrap: on
line diff
--- a/dwtx/jface/text/templates/TemplateTranslator.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/templates/TemplateTranslator.d Sun Aug 24 02:20:40 2008 +0200 @@ -116,7 +116,7 @@ fType= type; } - void mergeType(TemplateVariableType type) throws TemplateException { + void mergeType(TemplateVariableType type) { if (type is null) return; if (fType is null) @@ -155,7 +155,7 @@ * @see #getErrorMessage() * @throws TemplateException if translation failed */ - public TemplateBuffer translate(Template template) throws TemplateException { + public TemplateBuffer translate(Template template) { return parse(template.getPattern()); } @@ -169,7 +169,7 @@ * @see #getErrorMessage() * @throws TemplateException if translation failed */ - public TemplateBuffer translate(String string) throws TemplateException { + public TemplateBuffer translate(String string) { return parse(string); } @@ -180,7 +180,7 @@ * @return the parsed <code>TemplateBuffer</code> * @throws TemplateException if the string does not conform to the template format */ - private TemplateBuffer parse(String string) throws TemplateException { + private TemplateBuffer parse(String string) { fErrorMessage= null; final StringBuffer buffer= new StringBuffer(string.length()); @@ -240,7 +240,7 @@ return new TemplateVariableType(typeName, (String[]) params.toArray(new String[params.size()])); } - private void fail(String message) throws TemplateException { + private void fail(String message) { fErrorMessage= message; throw new TemplateException(message); } @@ -257,7 +257,7 @@ * @throws TemplateException if merging the type fails * @since 3.3 */ - private void updateOrCreateVariable(Map variables, String name, TemplateVariableType type, int offset) throws TemplateException { + private void updateOrCreateVariable(Map variables, String name, TemplateVariableType type, int offset) { VariableDescription varDesc= cast(VariableDescription) variables.get(name); if (varDesc is null) { varDesc= new VariableDescription(name, type);