IEditableRule editableRule = configRegistry.getConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE, DisplayMode.EDIT, cell
.getConfigLabels().getLabels());
IDataValidator validator = configRegistry.getConfigAttribute(
EditConfigAttributes.DATA_VALIDATOR, DisplayMode.EDIT, cell
.getConfigLabels().getLabels());
if (editableRule.isEditable(cell, configRegistry)) {
// process the tick update
Object newValue = getNewCellValue(command, cell);
// validate the value
try {
if (validator == null
|| validator.validate(cell, configRegistry, newValue)) {
selectionLayer.doCommand(new UpdateDataCommand(
selectionLayer, selectedPosition.columnPosition,
selectedPosition.rowPosition, newValue));
} else {
log.warn("Tick update failed for cell at " + selectedPosition + " and value " + newValue //$NON-NLS-1$ //$NON-NLS-2$