Mercurial > projects > dwt-addons
comparison 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 |
comparison
equal
deleted
inserted
replaced
133:7d818bd32d63 | 134:51e6e63f930e |
---|---|
124 * uninstalled | 124 * uninstalled |
125 */ | 125 */ |
126 public IHandler getHandler(String commandId) { | 126 public IHandler getHandler(String commandId) { |
127 if (fContentAssistant is null) | 127 if (fContentAssistant is null) |
128 throw new IllegalStateException(); | 128 throw new IllegalStateException(); |
129 return ((IContentAssistantExtension4)fContentAssistant).getHandler(commandId); | 129 return (cast(IContentAssistantExtension4)fContentAssistant).getHandler(commandId); |
130 } | 130 } |
131 | 131 |
132 /** | 132 /** |
133 * Adds a completion listener that will be informed before proposals are | 133 * Adds a completion listener that will be informed before proposals are |
134 * computed. | 134 * computed. |
138 * uninstalled | 138 * uninstalled |
139 */ | 139 */ |
140 public void addCompletionListener(ICompletionListener listener) { | 140 public void addCompletionListener(ICompletionListener listener) { |
141 if (fContentAssistant is null) | 141 if (fContentAssistant is null) |
142 throw new IllegalStateException(); | 142 throw new IllegalStateException(); |
143 ((IContentAssistantExtension2)fContentAssistant).addCompletionListener(listener); | 143 (cast(IContentAssistantExtension2)fContentAssistant).addCompletionListener(listener); |
144 } | 144 } |
145 | 145 |
146 /** | 146 /** |
147 * Removes a completion listener. | 147 * Removes a completion listener. |
148 * | 148 * |
149 * @param listener the listener to remove | 149 * @param listener the listener to remove |
150 * @throws IllegalStateException if called when the content assistant is | 150 * @throws IllegalStateException if called when the content assistant is |
151 * uninstalled | 151 * uninstalled |
152 */ | 152 */ |
153 public void removeCompletionListener(ICompletionListener listener) { | 153 public void removeCompletionListener(ICompletionListener listener) { |
154 ((IContentAssistantExtension2)fContentAssistant).removeCompletionListener(listener); | 154 (cast(IContentAssistantExtension2)fContentAssistant).removeCompletionListener(listener); |
155 } | 155 } |
156 | 156 |
157 } | 157 } |