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;
}
Aggregations