if (cellEditor.openMultiEditDialog()) {
// as the EditSelectionCommandHandler already ensured that
// all cells have the same
// configuration, we can simply use any cell for multi cell
// edit handling
ICellEditDialog dialog = CellEditDialogFactory
.createCellEditDialog(
parent != null ? parent.getShell() : null,
initialCanonicalValue, cells.iterator()
.next(), cellEditor, configRegistry);
int returnValue = dialog.open();
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();