cbOperation.addItemListener(new OperationSelectionListener());
}
private void propertySelected(IProperty property)
{
IProperty criteriaProperty = criteria.getProperty();
boolean differentProperty = criteriaProperty == null || !criteriaProperty.equals(property);
if (differentProperty) criteria.setProperty(property);
fillComparisonOperations(property);
if (differentProperty)
{
String currentValue = criteria.getValue();
if (StringUtils.isEmpty(currentValue) ||
(criteriaProperty == null || INCOMPATIBLE.contains(criteriaProperty.getClass())) ||
(INCOMPATIBLE.contains(property.getClass())) ||
property.validateValue(criteria.getComparisonOperation(), currentValue) != null)
{
criteria.setValue(property.getDefaultValue());
}