# HG changeset patch # User Frank Benoit # Date 1214054988 -7200 # Node ID cd18fa3b71f112697a7c052095411178a2dae2a6 # Parent 8d1a6e501ea4b998b9e3bb890e67d73fd2d8e1d1 fix workaround anon class problem in dmd 1.028 diff -r 8d1a6e501ea4 -r cd18fa3b71f1 dwtx/jface/dialogs/ProgressMonitorDialog.d --- a/dwtx/jface/dialogs/ProgressMonitorDialog.d Sat Jun 21 10:58:07 2008 +0200 +++ b/dwtx/jface/dialogs/ProgressMonitorDialog.d Sat Jun 21 15:29:48 2008 +0200 @@ -412,13 +412,19 @@ shell.setCursor(waitCursor); // Add a listener to set the message properly when the dialog becomes // visible - shell.addListener(DWT.Show, dgListener( (Event event, Shell shell_) { - // We need to async the message update since the Show precedes - // visibility - shell_.getDisplay().asyncExec(dgRunnable( { - setMessage(message, true); - })); - }, shell)); + // DWT FIXME: workaround for DMD 1.028 anon class problem + shell.addListener(DWT.Show, dgListener( &_handleEvent, shell)); + } + + // DWT FIXME: workaround for DMD 1.028 anon class problem + private void _handleEvent(Event event, Shell shell_) { + // We need to async the message update since the Show precedes + // visibility + shell_.getDisplay().asyncExec(dgRunnable( &_setMessage )); + } + // DWT FIXME: workaround for DMD 1.028 anon class problem + private void _setMessage() { + setMessage(message, true); } /*