Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/AnnotationModel.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 | 65801ad2b265 |
children | 25170b5a8951 |
line wrap: on
line diff
--- a/dwtx/jface/text/source/AnnotationModel.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/source/AnnotationModel.d Sun Aug 24 02:20:40 2008 +0200 @@ -467,7 +467,7 @@ * invalid position * @since 3.0 */ - protected void replaceAnnotations(Annotation[] annotationsToRemove, Map annotationsToAdd, bool fireModelChanged) throws BadLocationException { + protected void replaceAnnotations(Annotation[] annotationsToRemove, Map annotationsToAdd, bool fireModelChanged) { if (annotationsToRemove !is null) { for (int i= 0, length= annotationsToRemove.length; i < length; i++) @@ -499,7 +499,7 @@ * @param fireModelChanged indicates whether to notify all model listeners * @throws BadLocationException if the position is not a valid document position */ - protected void addAnnotation(Annotation annotation, Position position, bool fireModelChanged) throws BadLocationException { + protected void addAnnotation(Annotation annotation, Position position, bool fireModelChanged) { if (!fAnnotations.containsKey(annotation)) { addPosition(fDocument, position); @@ -538,7 +538,7 @@ * @param position the position to add * @throws BadLocationException if the position is not a valid document position */ - protected void addPosition(IDocument document, Position position) throws BadLocationException { + protected void addPosition(IDocument document, Position position) { if (document !is null) document.addPosition(position); }