case 1: // value
return ((ObjectData)element).getStringValue();
case 2: // formatted value
{
ObjectProperty op = ((ObjectData)element).getObjectProperty();
logger.trace("op: " + op);
if(op != null) {
try {
return formatterHelper.format(op, (ObjectData)element);
}
catch(ObjectPropertyFormatterException e) {
logger.error("Exception caught while executing formatter: " + e.getLocalizedMessage(),
e);
alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
.getLocalizedMessage()));
}
}
return null;
}
case 3: // validator
{
ObjectProperty op = ((ObjectData)element).getObjectProperty();
logger.trace("op: " + op);
if(op != null) {
String v = op.getValidatorType();
logger.trace("v: " + v);
if(v != null) {
return v;
}
}
return Messages
.getString("object.instance.editor.property_list.table.column.validator.none.label");
}
case 4: // calculator
{
ObjectProperty op = ((ObjectData)element).getObjectProperty();
logger.trace("op: " + op);
if(op != null) {
String v = op.getCalculatorType();
logger.trace("v: " + v);
if(v != null) {
return v;
}