comparison dwtx/jface/text/AbstractHoverInformationControlManager.d @ 135:65801ad2b265

Regex fix for anon classes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:52:31 +0200
parents 51e6e63f930e
children 25170b5a8951
comparison
equal deleted inserted replaced
134:51e6e63f930e 135:65801ad2b265
458 if (infoControl instanceof IDelayedInputChangeProvider) { 458 if (infoControl instanceof IDelayedInputChangeProvider) {
459 final IDelayedInputChangeProvider delayedICP= cast(IDelayedInputChangeProvider) infoControl; 459 final IDelayedInputChangeProvider delayedICP= cast(IDelayedInputChangeProvider) infoControl;
460 final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, getInformationControlReplacer()); 460 final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, getInformationControlReplacer());
461 delayedICP.setDelayedInputChangeListener(inputChangeListener); 461 delayedICP.setDelayedInputChangeListener(inputChangeListener);
462 // cancel automatic input updating after a small timeout: 462 // cancel automatic input updating after a small timeout:
463 control.getShell().getDisplay().timerExec(1000, new Runnable() { 463 control.getShell().getDisplay().timerExec(1000, new class() Runnable {
464 public void run() { 464 public void run() {
465 delayedICP.setDelayedInputChangeListener(null); 465 delayedICP.setDelayedInputChangeListener(null);
466 } 466 }
467 }); 467 });
468 } 468 }
469 469
470 // XXX: workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=212392 : 470 // XXX: workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=212392 :
471 control.getShell().getDisplay().asyncExec(new Runnable() { 471 control.getShell().getDisplay().asyncExec(new class() Runnable {
472 public void run() { 472 public void run() {
473 replaceInformationControl(true); 473 replaceInformationControl(true);
474 } 474 }
475 }); 475 });
476 } else { 476 } else {
1006 fReplacingDelayJob= new Job("AbstractHoverInformationControlManager Replace Delayer") { //$NON-NLS-1$ 1006 fReplacingDelayJob= new Job("AbstractHoverInformationControlManager Replace Delayer") { //$NON-NLS-1$
1007 public IStatus run(final IProgressMonitor monitor) { 1007 public IStatus run(final IProgressMonitor monitor) {
1008 if (monitor.isCanceled() || display.isDisposed()) { 1008 if (monitor.isCanceled() || display.isDisposed()) {
1009 return Status.CANCEL_STATUS; 1009 return Status.CANCEL_STATUS;
1010 } 1010 }
1011 display.syncExec(new Runnable() { 1011 display.syncExec(new class() Runnable {
1012 public void run() { 1012 public void run() {
1013 fReplacingDelayJob= null; 1013 fReplacingDelayJob= null;
1014 if (monitor.isCanceled()) 1014 if (monitor.isCanceled())
1015 return; 1015 return;
1016 if (! fWaitForMouseUp) 1016 if (! fWaitForMouseUp)
1117 * @since 3.4 1117 * @since 3.4
1118 * @noreference This method is not intended to be referenced by clients. 1118 * @noreference This method is not intended to be referenced by clients.
1119 * @nooverride This method is not intended to be re-implemented or extended by clients. 1119 * @nooverride This method is not intended to be re-implemented or extended by clients.
1120 */ 1120 */
1121 public InternalAccessor getInternalAccessor() { 1121 public InternalAccessor getInternalAccessor() {
1122 return new MyInternalAccessor() { 1122 return new class() MyInternalAccessor {
1123 public void setHoverEnrichMode(EnrichMode mode) { 1123 public void setHoverEnrichMode(EnrichMode mode) {
1124 AbstractHoverInformationControlManager.this.setHoverEnrichMode(mode); 1124 AbstractHoverInformationControlManager.this.setHoverEnrichMode(mode);
1125 } 1125 }
1126 }; 1126 };
1127 } 1127 }