X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fplatform%2Fui%2FFpdFlash.java;h=5eefacbdc3d3742a9f2d925d2d6f7aeefd7a3e4a;hp=e97004c3ca03877765d277320987b0c6440869b9;hb=a0783edc77ae576d8032461935362f43293bc467;hpb=007f887e703143af653d2304b9cbc9b422b0efca diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java index e97004c3ca..5eefacbdc3 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java @@ -2461,6 +2461,7 @@ public class FpdFlash extends IInternalFrame { if (mi != null) { name = mi.getName(); } + String[] row = { name, saa[i][0] , saa[i][1], saa[i][2] , saa[i][3], saa[i][4] }; modInFvTableModel.addRow(row); } @@ -2903,10 +2904,13 @@ public class FpdFlash extends IInternalFrame { String pv = modInFvTableModel.getValueAt(selectedRowLeft, 4)+""; String arch = modInFvTableModel.getValueAt(selectedRowLeft, 5)+""; String[] row = {name, mg, mv, pg, pv, arch}; - if (name.length() == 0 || name.equals("N/A")) { + String moduleKey = mg + " " + mv + " " + pg + " " + pv + " " + arch; + if (name.length() == 0 || name.equals("N/A") || ffc.getModuleSA(moduleKey) == null) { + 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 ); + modInFvTableModel.removeRow(selectedRowLeft); return; } - + fpdModTableModel.addRow(row); int viewIndex = ((TableSorter) jTableFpdModules.getModel()).getViewIndexArray()[jTableFpdModules .getRowCount() - 1];