Mercurial > projects > dwt-addons
comparison dwtx/jface/text/contentassist/PopupCloser.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 25f1f92fa3df |
children | c3583c6ec027 |
comparison
equal
deleted
inserted
replaced
161:f8d52b926852 | 162:1a5b8f8129df |
---|---|
203 * @see dwt.events.ShellAdapter#shellDeactivated(dwt.events.ShellEvent) | 203 * @see dwt.events.ShellAdapter#shellDeactivated(dwt.events.ShellEvent) |
204 * @since 3.1 | 204 * @since 3.1 |
205 */ | 205 */ |
206 public void shellDeactivated(ShellEvent e) { | 206 public void shellDeactivated(ShellEvent e) { |
207 if (fContentAssistant !is null && ! fContentAssistant.hasProposalPopupFocus()) | 207 if (fContentAssistant !is null && ! fContentAssistant.hasProposalPopupFocus()) |
208 fContentAssistant.hide(); | 208 fContentAssistant.hide_package(); |
209 } | 209 } |
210 | 210 |
211 | 211 |
212 /* | 212 /* |
213 * @see dwt.events.ShellAdapter#shellClosed(dwt.events.ShellEvent) | 213 * @see dwt.events.ShellAdapter#shellClosed(dwt.events.ShellEvent) |
214 * @since 3.1 | 214 * @since 3.1 |
215 */ | 215 */ |
216 public void shellClosed(ShellEvent e) { | 216 public void shellClosed(ShellEvent e) { |
217 if (fContentAssistant !is null) | 217 if (fContentAssistant !is null) |
218 fContentAssistant.hide(); | 218 fContentAssistant.hide_package(); |
219 } | 219 } |
220 | 220 |
221 /* | 221 /* |
222 * @see dwt.widgets.Listener#handleEvent(dwt.widgets.Event) | 222 * @see dwt.widgets.Listener#handleEvent(dwt.widgets.Event) |
223 * @since 3.4 | 223 * @since 3.4 |
230 return; | 230 return; |
231 if (event.widget is fShell || event.widget is fTable || event.widget is fScrollbar) | 231 if (event.widget is fShell || event.widget is fTable || event.widget is fScrollbar) |
232 return; | 232 return; |
233 | 233 |
234 if (fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer() is null) | 234 if (fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer() is null) |
235 fAdditionalInfoController.hideInformationControl(); | 235 fAdditionalInfoController.hideInformationControl_package(); |
236 else if (!fAdditionalInfoController.getInternalAccessor().isReplaceInProgress()) { | 236 else if (!fAdditionalInfoController.getInternalAccessor().isReplaceInProgress()) { |
237 IInformationControl infoControl= fAdditionalInfoController.getCurrentInformationControl2(); | 237 IInformationControl infoControl= fAdditionalInfoController.getCurrentInformationControl2(); |
238 // During isReplaceInProgress(), events can come from the replacing information control | 238 // During isReplaceInProgress(), events can come from the replacing information control |
239 if (cast(Control)event.widget && cast(IInformationControlExtension5)infoControl ) { | 239 if (cast(Control)event.widget && cast(IInformationControlExtension5)infoControl ) { |
240 Control control= cast(Control) event.widget; | 240 Control control= cast(Control) event.widget; |
241 IInformationControlExtension5 iControl5= cast(IInformationControlExtension5) infoControl; | 241 IInformationControlExtension5 iControl5= cast(IInformationControlExtension5) infoControl; |
242 if (!(iControl5.containsControl(control))) | 242 if (!(iControl5.containsControl(control))) |
243 fAdditionalInfoController.hideInformationControl(); | 243 fAdditionalInfoController.hideInformationControl_package(); |
244 else if (event.type is DWT.MouseWheel) | 244 else if (event.type is DWT.MouseWheel) |
245 fAdditionalInfoController.getInternalAccessor().replaceInformationControl(false); | 245 fAdditionalInfoController.getInternalAccessor().replaceInformationControl(false); |
246 } else if (infoControl !is null && infoControl.isFocusControl()) { | 246 } else if (infoControl !is null && infoControl.isFocusControl()) { |
247 fAdditionalInfoController.getInternalAccessor().replaceInformationControl(true); | 247 fAdditionalInfoController.getInternalAccessor().replaceInformationControl(true); |
248 } | 248 } |
292 IInformationControlExtension5 iControl5= cast(IInformationControlExtension5) iControl; | 292 IInformationControlExtension5 iControl5= cast(IInformationControlExtension5) iControl; |
293 if (iControl5.containsControl(control)) { | 293 if (iControl5.containsControl(control)) { |
294 control.getDisplay().asyncExec(new class() Runnable { | 294 control.getDisplay().asyncExec(new class() Runnable { |
295 public void run() { | 295 public void run() { |
296 if (fContentAssistant !is null && ! fContentAssistant.hasProposalPopupFocus()) | 296 if (fContentAssistant !is null && ! fContentAssistant.hasProposalPopupFocus()) |
297 fContentAssistant.hide(); | 297 fContentAssistant.hide_package(); |
298 } | 298 } |
299 }); | 299 }); |
300 } | 300 } |
301 } | 301 } |
302 } | 302 } |