Mercurial > projects > dwt-addons
diff dwtx/jface/text/quickassist/QuickAssistAssistant.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 51e6e63f930e |
children | 1a5b8f8129df |
line wrap: on
line diff
--- a/dwtx/jface/text/quickassist/QuickAssistAssistant.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/quickassist/QuickAssistAssistant.d Sun Aug 24 02:26:23 2008 +0200 @@ -79,7 +79,7 @@ */ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) { // panic code - should not happen - if (!(viewer instanceof ISourceViewer)) + if (!( cast(ISourceViewer)viewer )) return null; return fQuickAssistProcessor.computeQuickAssistProposals(new TextInvocationContext(cast(ISourceViewer)viewer, offset, -1));