Mercurial > projects > dwt-addons
comparison dwtx/jface/dialogs/ProgressMonitorDialog.d @ 88:cd18fa3b71f1
fix workaround anon class problem in dmd 1.028
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 21 Jun 2008 15:29:48 +0200 |
parents | 8d1a6e501ea4 |
children |
comparison
equal
deleted
inserted
replaced
87:8d1a6e501ea4 | 88:cd18fa3b71f1 |
---|---|
410 waitCursor = new Cursor(shell.getDisplay(), DWT.CURSOR_WAIT); | 410 waitCursor = new Cursor(shell.getDisplay(), DWT.CURSOR_WAIT); |
411 } | 411 } |
412 shell.setCursor(waitCursor); | 412 shell.setCursor(waitCursor); |
413 // Add a listener to set the message properly when the dialog becomes | 413 // Add a listener to set the message properly when the dialog becomes |
414 // visible | 414 // visible |
415 shell.addListener(DWT.Show, dgListener( (Event event, Shell shell_) { | 415 // DWT FIXME: workaround for DMD 1.028 anon class problem |
416 // We need to async the message update since the Show precedes | 416 shell.addListener(DWT.Show, dgListener( &_handleEvent, shell)); |
417 // visibility | 417 } |
418 shell_.getDisplay().asyncExec(dgRunnable( { | 418 |
419 setMessage(message, true); | 419 // DWT FIXME: workaround for DMD 1.028 anon class problem |
420 })); | 420 private void _handleEvent(Event event, Shell shell_) { |
421 }, shell)); | 421 // We need to async the message update since the Show precedes |
422 // visibility | |
423 shell_.getDisplay().asyncExec(dgRunnable( &_setMessage )); | |
424 } | |
425 // DWT FIXME: workaround for DMD 1.028 anon class problem | |
426 private void _setMessage() { | |
427 setMessage(message, true); | |
422 } | 428 } |
423 | 429 |
424 /* | 430 /* |
425 * (non-Javadoc) Method declared on Dialog. | 431 * (non-Javadoc) Method declared on Dialog. |
426 */ | 432 */ |