Package org.eclipse.nebula.widgets.nattable.edit.gui

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

Related Classes of org.eclipse.nebula.widgets.nattable.edit.gui.ICellEditDialog

Copyright © 2018 www.massapicom. 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.