[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Documentation hiccup

FYI.

In the Eclipse 'Programmer's Guide' under 'Standard Widget Toolkit |
Threading Issues', the following code sample is provided:

// do time intensive computations
..
// now update the UI. We don't depend on the result,
// so use async.
Display.getCurrent().asyncExec(new Runnable() {
    public void run() {
        myWindow.redraw();
    }
});
// now do more computations
..

On the latest build (0128), Display.getCurrent() returns null but
Display.getDefault() works ok.

-Sharon