7576777879808182838485
} } catch (Throwable e) { } } if (!display.isDisposed()) { display.update(); } } //////////////////////////////////////////////////////////////////////////// // // TODO: remove when completely switching to D2
207208209210211212213214215216217
} } catch (Throwable e) { } } if (!display.isDisposed()) { display.update(); // proceed outstanding events while (display.readAndDispatch()); } } finally { getEclipseShell().setEnabled(true);
8586878889909192939495
} } catch (Throwable e) { } } if (!display.isDisposed()) { display.update(); } } public Image makeShot() throws Exception { float[] bounds = new float[4]; _getWebViewBounds(m_handle, bounds);
9293949596979899100101102
} } catch (Throwable e) { } } if (!display.isDisposed()) { display.update(); } } public Image makeShot() throws Exception { Object nsImage = createNSImageFromHandle(_makeShot(m_handle)); if (nsImage != null) {
8485868788899091929394
919293949596979899100101
} } // restore bounds setBounds(0, 0, bounds.width, bounds.height); if (!display.isDisposed()) { display.update(); // proceed outstanding events while(display.readAndDispatch()); } } finally { getEclipseShell().setEnabled(true);
100101102103104105106107108109110
252253254255256257258259260261262
} } catch (Throwable e) { e.printStackTrace(); } } if (!display.isDisposed()) display.update(); return Window.OK; } @Override
4445464748495051525354
long endTimeMillis = System.currentTimeMillis() + waitTimeMillis; while (System.currentTimeMillis() < endTimeMillis) { if (!display.readAndDispatch()) display.sleep(); } display.update(); } // Otherwise, perform a simple sleep. else { try { Thread.sleep(waitTimeMillis);