Search in sources :

Example 1 with ColumnStyleEditorDialog

use of net.sourceforge.nattable.style.editor.ColumnStyleEditorDialog in project translationstudio8 by heartsome.

the class DisplayColumnStyleEditorCommandHandler method doCommand.

@Override
public boolean doCommand(DisplayColumnStyleEditorCommand command) {
    ILayer nattableLayer = command.getNattableLayer();
    int columnIndex = nattableLayer.getColumnIndexByPosition(command.columnPosition);
    // Column style
    Style slectedCellStyle = (Style) configRegistry.getConfigAttribute(CELL_STYLE, NORMAL, USER_EDITED_STYLE_LABEL + columnIndex);
    dialog = new ColumnStyleEditorDialog(Display.getCurrent().getActiveShell(), slectedCellStyle);
    dialog.open();
    if (dialog.isCancelPressed()) {
        return true;
    }
    applySelectedStyleToColumn(command, columnIndex);
    return true;
}
Also used : ColumnStyleEditorDialog(net.sourceforge.nattable.style.editor.ColumnStyleEditorDialog) ILayer(net.sourceforge.nattable.layer.ILayer) Style(net.sourceforge.nattable.style.Style)

Aggregations

ILayer (net.sourceforge.nattable.layer.ILayer)1 Style (net.sourceforge.nattable.style.Style)1 ColumnStyleEditorDialog (net.sourceforge.nattable.style.editor.ColumnStyleEditorDialog)1