]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdProtocolDecls.java
fix the problem that if no data updated in wizard editors, the Save indicator will...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / packaging / ui / SpdProtocolDecls.java
index 21cebb5cb9319387304ab69c36a2fe0fb0c6e57e..e5453947e58782949b7d88fb17c8c3d26d11140a 100644 (file)
@@ -62,7 +62,7 @@ public class SpdProtocolDecls extends SpdGuidDecls {
         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
@@ -72,7 +72,20 @@ public class SpdProtocolDecls extends SpdGuidDecls {
         \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