* @param toSet the date to set into the control.
*/
public void setDate(final Date toSet) {
log.debug(MessageFormat.format("Setting date on control: {0} to {1}", this, toSet)); //$NON-NLS-1$
assertEnabled();
syncExec(new VoidResult() {
@SuppressWarnings("deprecation")
public void run() {
widget.setYear(toSet.getYear() + 1900);
widget.setDay(toSet.getDate());
widget.setMonth(toSet.getMonth());