Mercurial > projects > dwt-addons
diff dwtx/jface/text/templates/TemplateProposal.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 65801ad2b265 |
children | 02cd5f1224d3 |
line wrap: on
line diff
--- a/dwtx/jface/text/templates/TemplateProposal.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/templates/TemplateProposal.d Sun Aug 24 02:26:23 2008 +0200 @@ -314,7 +314,7 @@ */ protected final int getReplaceOffset() { int start; - if (fContext instanceof DocumentTemplateContext) { + if ( cast(DocumentTemplateContext)fContext ) { DocumentTemplateContext docContext = cast(DocumentTemplateContext)fContext; start= docContext.getStart(); } else { @@ -333,7 +333,7 @@ */ protected final int getReplaceEndOffset() { int end; - if (fContext instanceof DocumentTemplateContext) { + if ( cast(DocumentTemplateContext)fContext ) { DocumentTemplateContext docContext = cast(DocumentTemplateContext)fContext; end= docContext.getEnd(); } else {