]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
1. Replace openDialog with saveDialog when generating guids.xref file
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / FrameworkWizardUI.java
index 0e0c54c345dcb3e7f1656aeaea43b3a3a26f72c7..5efa81b25d2a1c2552161f353e8ae17dc1922b15 100644 (file)
@@ -3636,7 +3636,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
         //\r
         // Get guids xref and save to file\r
         //\r
         //\r
         // Get guids xref and save to file\r
         //\r
-        int result = fc.showOpenDialog(new JPanel());\r
+        int result = fc.showSaveDialog(new JPanel());\r
         if (result == JFileChooser.APPROVE_OPTION) {\r
             Vector<String> v = wt.getAllModuleGuidXref();\r
             if (v.size() < 1) {\r
         if (result == JFileChooser.APPROVE_OPTION) {\r
             Vector<String> v = wt.getAllModuleGuidXref();\r
             if (v.size() < 1) {\r
@@ -3668,7 +3668,11 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
             } catch (IOException e) {\r
                 Log.wrn("Fail to write file", e.getMessage());\r
                 Log.err("Fail to write file when generating guids.xref", e.getMessage());\r
             } catch (IOException e) {\r
                 Log.wrn("Fail to write file", e.getMessage());\r
                 Log.err("Fail to write file when generating guids.xref", e.getMessage());\r
+                return;\r
             }\r
             }\r
+\r
+            JOptionPane.showConfirmDialog(null, "File is created", "Generate guids.xref", JOptionPane.DEFAULT_OPTION,\r
+                                          JOptionPane.INFORMATION_MESSAGE);\r
         }\r
     }\r
 }\r
         }\r
     }\r
 }\r