]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdBuildOptions.java
Fix the bug of Pcd value update in FrameworkModule settings. remove the curious warni...
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdBuildOptions.java
index 1abfe14032c6052b13a539b983bf5928e0cb8ebc..b6de4eb7d0b333a0135feb1e0371b38efdfdace0 100644 (file)
@@ -313,6 +313,7 @@ public class FpdBuildOptions extends IInternalFrame {
     private final int argWidth = 400;\r
     \r
     private boolean ffsSelection = false;\r
+    private int selectedFfsTableRow = -1;\r
 \r
     /**\r
      * This method initializes jPanel  \r
@@ -812,6 +813,7 @@ public class FpdBuildOptions extends IInternalFrame {
                         ffc.getBuildOptionsFfs(row, sArray, lhm, alSections, alSection);\r
                         ffsSelection = true;\r
                         jTextFieldEncapType.setText(sArray[1]);\r
+                        ffsSelection = false;\r
                         for (int i = 0; i < alSection.size(); ++i) {\r
                             String[] sectionRow = { alSection.get(i) };\r
                             sectionTableModel.addRow(sectionRow);\r
@@ -830,6 +832,7 @@ public class FpdBuildOptions extends IInternalFrame {
                             String[] attribRow = { key, lhm.get(key) };\r
                             ffsAttributesTableModel.addRow(attribRow);\r
                         }\r
+                        selectedFfsTableRow = row;\r
                     }\r
                 }\r
             });\r
@@ -995,7 +998,7 @@ public class FpdBuildOptions extends IInternalFrame {
 \r
                 public void insertUpdate(DocumentEvent arg0) {\r
                     if (ffsSelection) {\r
-                        ffsSelection = false;\r
+//                        ffsSelection = false;\r
                         return;\r
                     }\r
                     if (docConsole != null) {\r
@@ -1005,7 +1008,7 @@ public class FpdBuildOptions extends IInternalFrame {
 \r
                 public void removeUpdate(DocumentEvent arg0) {\r
                     if (ffsSelection) {\r
-                        ffsSelection = false;\r
+//                        ffsSelection = false;\r
                         return;\r
                     }\r
                     if (docConsole != null) {\r
@@ -1021,10 +1024,10 @@ public class FpdBuildOptions extends IInternalFrame {
             });\r
             jTextFieldEncapType.addFocusListener(new java.awt.event.FocusAdapter() {\r
                 public void focusLost(java.awt.event.FocusEvent e) {\r
-                    if (jTableFfs.getSelectedRow() < 0) {\r
+                    if (selectedFfsTableRow < 0) {\r
                         return;\r
                     }\r
-                    ffc.updateBuildOptionsFfsSectionsType(jTableFfs.getSelectedRow(), jTextFieldEncapType.getText());\r
+                    ffc.updateBuildOptionsFfsSectionsType(selectedFfsTableRow, jTextFieldEncapType.getText());\r
                     \r
                 }\r
             });\r