1 package org.simantics.district.network.ui.table;
3 import org.eclipse.nebula.widgets.nattable.command.AbstractMultiColumnCommand;
4 import org.eclipse.nebula.widgets.nattable.command.ILayerCommand;
5 import org.eclipse.nebula.widgets.nattable.layer.ILayer;
7 public class CustomPasteDataCommand extends AbstractMultiColumnCommand {
12 protected CustomPasteDataCommand(ILayer layer, int[] columnPositions, int pasteRow, String[][] data) {
13 super(layer, columnPositions);
14 this.pasteRow = pasteRow;
18 protected CustomPasteDataCommand(CustomPasteDataCommand pasteDataCommand) {
19 super(pasteDataCommand);
20 this.pasteRow = pasteDataCommand.pasteRow;
21 this.data = pasteDataCommand.data;
24 public ILayerCommand cloneCommand() {
25 return new CustomPasteDataCommand(this);