Mercurial > projects > dwt-addons
diff dwtx/jface/text/templates/TemplateContextType.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 | 26688fec6d23 |
line wrap: on
line diff
--- a/dwtx/jface/text/templates/TemplateContextType.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/templates/TemplateContextType.d Sun Aug 24 02:20:40 2008 +0200 @@ -141,7 +141,7 @@ * @throws RuntimeException an unspecified exception if the id has already * been set on this context type */ - public final void setId(String id) throws RuntimeException { + public final void setId(String id) { Assert.isNotNull(id); Assert.isTrue(fId is null); // may only be called once when the context is instantiated fId= id; @@ -217,7 +217,7 @@ * @param pattern the template pattern to validate * @throws TemplateException if the pattern is invalid */ - public void validate(String pattern) throws TemplateException { + public void validate(String pattern) { TemplateTranslator translator= new TemplateTranslator(); TemplateBuffer buffer= translator.translate(pattern); validateVariables(buffer.getVariables()); @@ -235,7 +235,7 @@ * @throws TemplateException if one of the variables is not valid in this * context type */ - protected void validateVariables(TemplateVariable[] variables) throws TemplateException { + protected void validateVariables(TemplateVariable[] variables) { } /**