comparison dwtx/jface/text/TextViewer.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
comparison
equal deleted inserted replaced
135:65801ad2b265 136:6dcb0baaa031
2964 * @return <code>true</code> if the slave has been adapted successfully 2964 * @return <code>true</code> if the slave has been adapted successfully
2965 * @throws BadLocationException in case the specified range is not valid in the master document 2965 * @throws BadLocationException in case the specified range is not valid in the master document
2966 * @since 2.1 2966 * @since 2.1
2967 * @deprecated use <code>updateSlaveDocument</code> instead 2967 * @deprecated use <code>updateSlaveDocument</code> instead
2968 */ 2968 */
2969 protected bool updateVisibleDocument(IDocument visibleDocument, int visibleRegionOffset, int visibleRegionLength) throws BadLocationException { 2969 protected bool updateVisibleDocument(IDocument visibleDocument, int visibleRegionOffset, int visibleRegionLength) {
2970 if (visibleDocument instanceof ChildDocument) { 2970 if (visibleDocument instanceof ChildDocument) {
2971 ChildDocument childDocument= cast(ChildDocument) visibleDocument; 2971 ChildDocument childDocument= cast(ChildDocument) visibleDocument;
2972 2972
2973 IDocument document= childDocument.getParentDocument(); 2973 IDocument document= childDocument.getParentDocument();
2974 int line= document.getLineOfOffset(visibleRegionOffset); 2974 int line= document.getLineOfOffset(visibleRegionOffset);
2992 * @param modelRangeLength the length of the master document range 2992 * @param modelRangeLength the length of the master document range
2993 * @return <code>true</code> if the slave has been adapted successfully 2993 * @return <code>true</code> if the slave has been adapted successfully
2994 * @throws BadLocationException in case the specified range is not valid in the master document 2994 * @throws BadLocationException in case the specified range is not valid in the master document
2995 * @since 3.0 2995 * @since 3.0
2996 */ 2996 */
2997 protected bool updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) throws BadLocationException { 2997 protected bool updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) {
2998 return updateVisibleDocument(slaveDocument, modelRangeOffset, modelRangeLength); 2998 return updateVisibleDocument(slaveDocument, modelRangeOffset, modelRangeLength);
2999 } 2999 }
3000 3000
3001 3001
3002 3002
5481 * 5481 *
5482 * @param hyperlinkPresenter the hyperlink presenter 5482 * @param hyperlinkPresenter the hyperlink presenter
5483 * @throws IllegalStateException if the hyperlink manager has already been created 5483 * @throws IllegalStateException if the hyperlink manager has already been created
5484 * @since 3.1 5484 * @since 3.1
5485 */ 5485 */
5486 public void setHyperlinkPresenter(IHyperlinkPresenter hyperlinkPresenter) throws IllegalStateException { 5486 public void setHyperlinkPresenter(IHyperlinkPresenter hyperlinkPresenter) {
5487 if (fHyperlinkManager !is null) 5487 if (fHyperlinkManager !is null)
5488 throw new IllegalStateException(); 5488 throw new IllegalStateException();
5489 5489
5490 fHyperlinkPresenter= hyperlinkPresenter; 5490 fHyperlinkPresenter= hyperlinkPresenter;
5491 ensureHyperlinkManagerInstalled(); 5491 ensureHyperlinkManagerInstalled();