Hi,
I would change this method (Integer --> Number)
protected void doSetValue(Object value) {
Assert.isTrue(comboBox != null && (value instanceof Integer));
selection = ((Integer) value).intValue();
comboBox.select(selection);
}
to:
protected void doSetValue(Object value) {
Assert.isTrue(comboBox != null && (value instanceof Number));
selection = ((Number) value).intValue();
comboBox.select(selection);
}
because e.g. in a JDBC environment, you could have Short, Long, ...
instead of Integer. We would have more genericity with no cost.
SWT developers, what do you think?