if (sfc.getSpdProtocolDeclarationCount() == 0) {\r
return ;\r
}\r
- String[][] saa = new String[sfc.getSpdProtocolDeclarationCount()][7];\r
+ saa = new String[sfc.getSpdProtocolDeclarationCount()][7];\r
sfc.getSpdProtocolDeclarations(saa);\r
int i = 0;\r
while (i < saa.length) {\r
\r
}\r
\r
- protected void updateRow(int row, TableModel m){\r
+ protected void updateRow(int row, int column, TableModel m){\r
+ String[] sa = new String[7];\r
+ sfc.getSpdProtocolDeclaration(sa, row);\r
+ Object cellData = m.getValueAt(row, column);\r
+ if (cellData == null) {\r
+ cellData = "";\r
+ }\r
+ if (cellData.equals(sa[column])) {\r
+ return;\r
+ }\r
+ if (cellData.toString().length() == 0 && sa[column] == null) {\r
+ return;\r
+ }\r
+ \r
String name = m.getValueAt(row, 0) + "";\r
String cName = m.getValueAt(row, 1) + "";\r
String guid = m.getValueAt(row, 2) + "";\r
sfc.updateSpdProtocolDecl(row, name, cName, guid, help, archList, modTypeList, guidTypeList);\r
}\r
\r
- protected void addRow(String[] row) {\r
+ protected int addRow(String[] row) {\r
if (!dataValidation(row)){\r
- return;\r
+ return -1;\r
}\r
docConsole.setSaved(false);\r
sfc.genSpdProtocolDeclarations(row[0], row[1], row[2], row[3], stringToVector(row[4]), stringToVector(row[5]), stringToVector(row[6]));\r
+ return 0;\r
}\r
\r
protected void removeRow(int i){\r