if (returnValue == Window.OK) {
for (ILayerCell selectedCell : cells) {
Object editorValue = dialog.getCommittedValue();
if (!(dialog.getEditType() == EditTypeEnum.SET)) {
editorValue = dialog.calculateValue(
selectedCell.getDataValue(),
editorValue);
}
ILayer layer = selectedCell.getLayer();