]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ui/src/org/simantics/district/network/ui/table/CustomPasteDataCommand.java
Fixed District diagram viewer to allow moving of vertices again.
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / table / CustomPasteDataCommand.java
1 package org.simantics.district.network.ui.table;
2
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;
6
7 public class CustomPasteDataCommand extends AbstractMultiColumnCommand {
8
9     int pasteRow;
10     String[][] data;
11
12     protected CustomPasteDataCommand(ILayer layer, int[] columnPositions, int pasteRow, String[][] data) {
13         super(layer, columnPositions);
14         this.pasteRow = pasteRow;
15         this.data = data;
16     }
17
18     protected CustomPasteDataCommand(CustomPasteDataCommand pasteDataCommand) {
19         super(pasteDataCommand);
20         this.pasteRow = pasteDataCommand.pasteRow;
21         this.data = pasteDataCommand.data;
22     }
23     @Override
24     public ILayerCommand cloneCommand() {
25         return new CustomPasteDataCommand(this);
26     }
27     
28 }