* @param description the description of the widget, this will be reported by {@link #toString()}
* @throws WidgetNotFoundException if the widget is <code>null</code> or widget has been disposed.
*/
public AbstractSWTBot(T w, SelfDescribing description) throws WidgetNotFoundException {
if (w == null)
throw new WidgetNotFoundException("The widget was null."); //$NON-NLS-1$
this.widget = w;
if (description == null)
this.description = new WidgetTextDescription(w);
else
this.description = description;
if (w.isDisposed())
throw new WidgetNotFoundException("The widget {" + description + "} was disposed." + SWTUtils.toString(w)); //$NON-NLS-1$ //$NON-NLS-2$
display = w.getDisplay();
log = Logger.getLogger(getClass());
}