]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java
Fix bug of missing Pcd information in FPD ModuleSA.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdModuleSA.java
index 48573115222c365c4b7df70c77700ad8427d38cc..7fd914adcc8e6b3432e525eead793e15f351624b 100644 (file)
@@ -129,27 +129,27 @@ public class FpdModuleSA extends JDialog implements ActionListener {
         this.ffc = ffc;\r
     }\r
     \r
-    public void setKey(String k){\r
+    public void setKey(String k, int i){\r
         this.moduleKey = k;\r
         jTabbedPane.setSelectedIndex(0);\r
-        initPcdBuildDefinition(k);\r
+        initPcdBuildDefinition(i);\r
     }\r
 \r
     /**\r
       init will be called each time FpdModuleSA object is to be shown.\r
       @param key Module information.\r
      **/\r
-    public void initPcdBuildDefinition(String key) {\r
+    public void initPcdBuildDefinition(int i) {\r
         //\r
         // display pcd for key.\r
         //\r
         model.setRowCount(0);\r
-        int pcdCount = ffc.getPcdDataCount(key);\r
+        int pcdCount = ffc.getPcdDataCount(i);\r
         if (pcdCount != 0) {\r
             String[][] saa = new String[pcdCount][7];\r
-            ffc.getPcdData(key, saa);\r
-            for (int i = 0; i < saa.length; ++i) {\r
-                model.addRow(saa[i]);\r
+            ffc.getPcdData(i, saa);\r
+            for (int j = 0; j < saa.length; ++j) {\r
+                model.addRow(saa[j]);\r
             }\r
         }\r
     }\r
@@ -483,7 +483,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
             jPanel.add(getJPanel2(), java.awt.BorderLayout.SOUTH);\r
             jPanel.addComponentListener(new java.awt.event.ComponentAdapter() {\r
                 public void componentShown(java.awt.event.ComponentEvent e) {\r
-                    initPcdBuildDefinition(moduleKey);\r
+//                    initPcdBuildDefinition(moduleKey);\r
                 }\r
             });\r
             \r