]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java
Fix EDKT337,Double click on modules in "Framework Modules" of Platforms should be...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdFlash.java
index e97004c3ca03877765d277320987b0c6440869b9..5eefacbdc3d3742a9f2d925d2d6f7aeefd7a3e4a 100644 (file)
@@ -2461,6 +2461,7 @@ public class FpdFlash extends IInternalFrame {
                     if (mi != null) {\r
                         name = mi.getName();\r
                     }\r
+                    \r
                     String[] row = { name, saa[i][0] , saa[i][1], saa[i][2] , saa[i][3], saa[i][4] };\r
                     modInFvTableModel.addRow(row);\r
                 }\r
@@ -2903,10 +2904,13 @@ public class FpdFlash extends IInternalFrame {
                         String pv = modInFvTableModel.getValueAt(selectedRowLeft, 4)+"";\r
                         String arch = modInFvTableModel.getValueAt(selectedRowLeft, 5)+"";\r
                         String[] row = {name, mg, mv, pg, pv, arch};\r
-                        if (name.length() == 0 || name.equals("N/A")) {\r
+                        String moduleKey = mg + " " + mv + " " + pg + " " + pv + " " + arch; \r
+                        if (name.length() == 0 || name.equals("N/A") || ffc.getModuleSA(moduleKey) == null) {\r
+                            JOptionPane.showMessageDialog(frame, "Module " + name + " not exists in platform. If you want to add back this module, please first add it into current platform. " + moduleKey );\r
+                            modInFvTableModel.removeRow(selectedRowLeft);\r
                             return;\r
                         }\r
-                        \r
+                       \r
                         fpdModTableModel.addRow(row);\r
                         int viewIndex = ((TableSorter) jTableFpdModules.getModel()).getViewIndexArray()[jTableFpdModules\r
                                                                                                                         .getRowCount() - 1];\r