X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.network.ui%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fnetwork%2Fui%2Ftable%2FCustomPasteDataCommand.java;fp=org.simantics.district.network.ui%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fnetwork%2Fui%2Ftable%2FCustomPasteDataCommand.java;h=2ddc0a49adc32ea51a1d046251783d338b585f3d;hb=af46ba24e2d2b6e68f62e5e215386166fa456d98;hp=0000000000000000000000000000000000000000;hpb=38cb4b0b42c4c35a696bb46ffcf8129ca8d89103;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/table/CustomPasteDataCommand.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/table/CustomPasteDataCommand.java new file mode 100644 index 00000000..2ddc0a49 --- /dev/null +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/table/CustomPasteDataCommand.java @@ -0,0 +1,28 @@ +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); + } + +}