/** * Registers the given runnable with the display * associated with this view's control, if any. * @param r the {@link Runnable} to run * * @see org.eclipse.swt.widgets.Display#asyncExec(java.lang.Runnable) */ public void asyncExec(Runnable r) { if (isAvailable()) { getControl().getDisplay().asyncExec(r); } }
/** * Registers the given runnable with the display * associated with this view's control, if any. * @param r the {@link Runnable} to run * * @see org.eclipse.swt.widgets.Display#syncExec(java.lang.Runnable) */ public void syncExec(Runnable r) { if (isAvailable()) { getControl().getDisplay().syncExec(r); } }