Community
Participate
Working Groups
markDirty();
boolean isValid = isCorrect(newValue);
setValueValid(isValid);
if (!isValid) {
// try to insert the current value into the error message.
// Fix for 60462...only format if the 'index' is valid
setErrorMessage(MessageFormat.format(getErrorMessage(),
if (items.length > 0 && selection >= 0 && selection < items.length) {
new Object[] { items[selection] }));
}
else {
// Since we don't have a valid index, assume we're using an 'edit'
// combo so format using its text value
new Object[] { comboBox.getText() }));
fireApplyEditorValue();
deactivate();