Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/projection/ProjectionViewer.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 | b6bad70d540a |
line wrap: on
line diff
--- a/dwtx/jface/text/source/projection/ProjectionViewer.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/source/projection/ProjectionViewer.d Sun Aug 24 02:20:40 2008 +0200 @@ -419,7 +419,7 @@ /* * @see dwtx.jface.text.TextViewer#updateSlaveDocument(dwtx.jface.text.IDocument, int, int) */ - protected bool updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) throws BadLocationException { + protected bool updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) { if (slaveDocument instanceof ProjectionDocument) { ProjectionDocument projection= cast(ProjectionDocument) slaveDocument; @@ -630,7 +630,7 @@ * * @see ProjectionDocument#addMasterDocumentRange(int, int) */ - private void addMasterDocumentRange(ProjectionDocument projection, int offset, int length) throws BadLocationException { + private void addMasterDocumentRange(ProjectionDocument projection, int offset, int length) { if (fCommandQueue !is null) { fCommandQueue.add(new ProjectionCommand(projection, ProjectionCommand.ADD, offset, length)); @@ -661,7 +661,7 @@ * * @see ProjectionDocument#removeMasterDocumentRange(int, int) */ - private void removeMasterDocumentRange(ProjectionDocument projection, int offset, int length) throws BadLocationException { + private void removeMasterDocumentRange(ProjectionDocument projection, int offset, int length) { if (fCommandQueue !is null) { fCommandQueue.add(new ProjectionCommand(projection, ProjectionCommand.REMOVE, offset, length)); } else { @@ -690,7 +690,7 @@ * @throws BadLocationException if the offset is invalid * @since 3.2 */ - private int toLineStart(IDocument document, int offset, bool testLastLine) throws BadLocationException { + private int toLineStart(IDocument document, int offset, bool testLastLine) { if (document is null) return offset; @@ -801,7 +801,7 @@ * @param fireRedraw <code>true</code> if a redraw request should be issued, <code>false</code> otherwise * @throws BadLocationException in case the range is invalid */ - private void collapse(int offset, int length, bool fireRedraw) throws BadLocationException { + private void collapse(int offset, int length, bool fireRedraw) { ProjectionDocument projection= null; IDocument visibleDocument= getVisibleDocument(); @@ -841,7 +841,7 @@ * <code>false</code> otherwise * @throws BadLocationException in case the range is invalid */ - private void expand(int offset, int length, bool fireRedraw) throws BadLocationException { + private void expand(int offset, int length, bool fireRedraw) { IDocument slave= getVisibleDocument(); if (slave instanceof ProjectionDocument) { ProjectionDocument projection= cast(ProjectionDocument) slave; @@ -958,7 +958,7 @@ * @param event the annotation model event or <code>null</code> * @exception BadLocationException in case the annotation model event is no longer in synchronization with the document */ - private void catchupWithProjectionAnnotationModel(AnnotationModelEvent event) throws BadLocationException { + private void catchupWithProjectionAnnotationModel(AnnotationModelEvent event) { if (event is null || !isVisibleMasterDocumentSameAsDocument()) { @@ -1019,7 +1019,7 @@ } } - private void executeProjectionCommands(ProjectionCommandQueue commandQueue, bool fireRedraw) throws BadLocationException { + private void executeProjectionCommands(ProjectionCommandQueue commandQueue, bool fireRedraw) { ProjectionCommand command; Iterator e= commandQueue.iterator(); @@ -1084,7 +1084,7 @@ /* * We pass the removed annotation into this method for performance reasons only. Otherwise, they could be fetch from the event. */ - private void processDeletions(AnnotationModelEvent event, Annotation[] removedAnnotations, bool fireRedraw) throws BadLocationException { + private void processDeletions(AnnotationModelEvent event, Annotation[] removedAnnotations, bool fireRedraw) { for (int i= 0; i < removedAnnotations.length; i++) { ProjectionAnnotation annotation= cast(ProjectionAnnotation) removedAnnotations[i]; if (annotation.isCollapsed()) { @@ -1178,7 +1178,7 @@ return null; } - private void processChanges(Annotation[] annotations, bool fireRedraw, List coverage) throws BadLocationException { + private void processChanges(Annotation[] annotations, bool fireRedraw, List coverage) { for (int i= 0; i < annotations.length; i++) { ProjectionAnnotation annotation= cast(ProjectionAnnotation) annotations[i]; Position position= fProjectionAnnotationModel.getPosition(annotation); @@ -1216,7 +1216,7 @@ * * @throws BadLocationException in case something goes wrong during initialization */ - public final void reinitializeProjection() throws BadLocationException { + public final void reinitializeProjection() { ProjectionDocument projection= null; @@ -1622,7 +1622,7 @@ } } - private void deleteTextRange(int offset, int length, StyledText textWidget) throws BadLocationException { + private void deleteTextRange(int offset, int length, StyledText textWidget) { getDocument().replace(offset, length, ""); //$NON-NLS-1$ int widgetCaret= modelOffset2WidgetOffset(offset); if (widgetCaret > -1)