提交 fc357278 编写于 作者: S Serge Rider

#7014 Add new row in record mode

上级 79ee9a70
......@@ -235,6 +235,13 @@ public class ArrayUtils {
return elements;
}
public static int[] add(int[] elements, int add) {
int[] newArray = new int[elements.length + 1];
System.arraycopy(elements, 0, newArray, 0, elements.length);
newArray[elements.length] = add;
return newArray;
}
public static void main(String[] args) {
String[] arr = new String[0];
......
......@@ -4146,7 +4146,7 @@ public class ResultSetViewer extends Viewer
}
this.curRow = model.addNewRow(newRowIndex, cells);
this.selectedRecords = new int[] { curRow.getVisualNumber() };
this.selectedRecords = ArrayUtils.add(this.selectedRecords, this.selectedRecords[this.selectedRecords.length - 1] + 1);
newRowIndex++;
srcRowIndex++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册