use of net.sourceforge.nattable.resize.command.AutoResizeColumnsCommand in project translationstudio8 by heartsome.
the class InitializeAutoResizeColumnsCommandHandler method doCommand.
@Override
protected boolean doCommand(InitializeAutoResizeColumnsCommand initCommand) {
int columnPosition = initCommand.getColumnPosition();
if (selectionLayer.isColumnFullySelected(columnPosition)) {
initCommand.setSelectedColumnPositions(selectionLayer.getFullySelectedColumnPositions());
} else {
initCommand.setSelectedColumnPositions(new int[] { columnPosition });
}
// Fire command carrying the selected columns
initCommand.getSourceLayer().doCommand(new AutoResizeColumnsCommand(initCommand));
return true;
}
Aggregations