Mercurial > projects > dwt-addons
diff dwtx/jface/text/link/LinkedModeModel.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 | 25170b5a8951 |
line wrap: on
line diff
--- a/dwtx/jface/text/link/LinkedModeModel.d Sun Aug 24 01:52:31 2008 +0200 +++ b/dwtx/jface/text/link/LinkedModeModel.d Sun Aug 24 02:20:40 2008 +0200 @@ -313,7 +313,7 @@ * @throws BadLocationException if <code>group</code> conflicts with this * model's groups */ - private void enforceDisjoint(LinkedPositionGroup group) throws BadLocationException { + private void enforceDisjoint(LinkedPositionGroup group) { for (Iterator it= fGroups.iterator(); it.hasNext(); ) { LinkedPositionGroup g= cast(LinkedPositionGroup) it.next(); g.enforceDisjoint(group); @@ -419,7 +419,7 @@ * @throws IllegalStateException if the method is called when the * model is already sealed */ - public void addGroup(LinkedPositionGroup group) throws BadLocationException { + public void addGroup(LinkedPositionGroup group) { if (group is null) throw new IllegalArgumentException("group may not be null"); //$NON-NLS-1$ if (fIsSealed) @@ -453,7 +453,7 @@ * @throws BadLocationException if some of the positions of this model * were not valid positions on their respective documents */ - public void forceInstall() throws BadLocationException { + public void forceInstall() { if (!install(true)) Assert.isTrue(false); } @@ -474,7 +474,7 @@ * @throws BadLocationException if some of the positions of this model * were not valid positions on their respective documents */ - public bool tryInstall() throws BadLocationException { + public bool tryInstall() { return install(false); } @@ -494,7 +494,7 @@ * @throws BadLocationException if some of the positions of this model * were not valid positions on their respective documents */ - private bool install(bool force) throws BadLocationException { + private bool install(bool force) { if (fIsSealed) throw new IllegalStateException("model is already installed"); //$NON-NLS-1$ enforceNotEmpty(); @@ -700,7 +700,7 @@ * @throws BadLocationException if the position cannot be added to its * document */ - void register(LinkedPosition position) throws BadLocationException { + void register(LinkedPosition position) { Assert.isNotNull(position); IDocument document= position.getDocument();