* @return <code>true</code> if the widget has the specified style bit set. Otherwise <code>false</code>.
*/
public static boolean hasStyle(final Widget w, final int style) {
if ((w == null) || w.isDisposed())
return false;
return UIThreadRunnable.syncExec(w.getDisplay(), new BoolResult() {
public boolean run() {
return (w.getStyle() & style) != 0;
}
});
}