package org.simantics.district.network.ui.table; import org.eclipse.nebula.widgets.nattable.command.AbstractMultiColumnCommand; import org.eclipse.nebula.widgets.nattable.command.ILayerCommand; import org.eclipse.nebula.widgets.nattable.layer.ILayer; public class CustomPasteDataCommand extends AbstractMultiColumnCommand { int pasteRow; String[][] data; protected CustomPasteDataCommand(ILayer layer, int[] columnPositions, int pasteRow, String[][] data) { super(layer, columnPositions); this.pasteRow = pasteRow; this.data = data; } protected CustomPasteDataCommand(CustomPasteDataCommand pasteDataCommand) { super(pasteDataCommand); this.pasteRow = pasteDataCommand.pasteRow; this.data = pasteDataCommand.data; } @Override public ILayerCommand cloneCommand() { return new CustomPasteDataCommand(this); } }