Mercurial > projects > dwt-addons
diff dwtx/jface/text/link/LinkedPositionGroup.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 | 75302ef3f92f |
line wrap: on
line diff
--- a/dwtx/jface/text/link/LinkedPositionGroup.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/link/LinkedPositionGroup.d Sun Aug 24 02:20:40 2008 +0200 @@ -112,7 +112,7 @@ * @throws IllegalStateException if the group has already been added to a * model */ - public void addPosition(LinkedPosition position) throws BadLocationException { + public void addPosition(LinkedPosition position) { /* * Enforces constraints and sets the custom iteration flag. If the * position is already in this group, nothing happens. @@ -136,7 +136,7 @@ * @param position the position to check * @throws BadLocationException if the equal content check fails */ - private void enforceEqualContent(LinkedPosition position) throws BadLocationException { + private void enforceEqualContent(LinkedPosition position) { if (fPositions.size() > 0) { LinkedPosition groupPosition= cast(LinkedPosition) fPositions.get(0); String groupContent= groupPosition.getContent(); @@ -154,7 +154,7 @@ * @param position the position to check * @throws BadLocationException if the disjointness check fails */ - private void enforceDisjoint(LinkedPosition position) throws BadLocationException { + private void enforceDisjoint(LinkedPosition position) { for (Iterator it= fPositions.iterator(); it.hasNext(); ) { LinkedPosition p= cast(LinkedPosition) it.next(); if (p.overlapsWith(position)) @@ -168,7 +168,7 @@ * @param group the group to check * @throws BadLocationException if the disjointness check fails */ - void enforceDisjoint(LinkedPositionGroup group) throws BadLocationException { + void enforceDisjoint(LinkedPositionGroup group) { Assert.isNotNull(group); for (Iterator it= group.fPositions.iterator(); it.hasNext(); ) { LinkedPosition p= cast(LinkedPosition) it.next(); @@ -312,7 +312,7 @@ return docs; } - void register(LinkedModeModel model) throws BadLocationException { + void register(LinkedModeModel model) { for (Iterator it= fPositions.iterator(); it.hasNext(); ) { LinkedPosition pos= cast(LinkedPosition) it.next(); model.register(pos); @@ -329,7 +329,7 @@ * @throws BadLocationException if more than one position are affected by * <code>group</code> */ - LinkedPosition adopt(LinkedPositionGroup group) throws BadLocationException { + LinkedPosition adopt(LinkedPositionGroup group) { LinkedPosition found= null; for (Iterator it= group.fPositions.iterator(); it.hasNext(); ) { LinkedPosition pos= cast(LinkedPosition) it.next();