Examples of ICellEditDialog


Examples of org.eclipse.nebula.widgets.nattable.edit.gui.ICellEditDialog

                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();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.