@Override protected Object doGetValue() { if (!dateTime.isDisposed()) { return dateTime.getSelection(); } return null; }
@Override protected void doSetValue(Object value) { if (value instanceof Date && !dateTime.isDisposed()) { Date oldValue; Date newValue; try { updating = true; oldValue = dateTime.getSelection(); newValue = (Date) value; dateTime.setSelection(newValue); currentSelection = newValue; fireValueChange(Diffs.createValueDiff(oldValue, newValue)); } finally { updating = false; } } }