Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/ContentAssistantFacade.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | ea8dd2e11034 |
line wrap: on
line diff
--- a/dwtx/jface/text/source/ContentAssistantFacade.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/text/source/ContentAssistantFacade.d Sun Aug 24 01:46:20 2008 +0200 @@ -126,7 +126,7 @@ public IHandler getHandler(String commandId) { if (fContentAssistant is null) throw new IllegalStateException(); - return ((IContentAssistantExtension4)fContentAssistant).getHandler(commandId); + return (cast(IContentAssistantExtension4)fContentAssistant).getHandler(commandId); } /** @@ -140,7 +140,7 @@ public void addCompletionListener(ICompletionListener listener) { if (fContentAssistant is null) throw new IllegalStateException(); - ((IContentAssistantExtension2)fContentAssistant).addCompletionListener(listener); + (cast(IContentAssistantExtension2)fContentAssistant).addCompletionListener(listener); } /** @@ -151,7 +151,7 @@ * uninstalled */ public void removeCompletionListener(ICompletionListener listener) { - ((IContentAssistantExtension2)fContentAssistant).removeCompletionListener(listener); + (cast(IContentAssistantExtension2)fContentAssistant).removeCompletionListener(listener); } }