]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Replace openDialog with saveDialog when generating guids.xref file
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Sep 2006 01:34:05 +0000 (01:34 +0000)
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Sep 2006 01:34:05 +0000 (01:34 +0000)
2. Add a message box dialog after guids.xref is created successfully.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1621 6f19259b-4bc3-4df7-8a09-765794883524

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
-        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
@@ -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
+                return;\r
             }\r
+\r
+            JOptionPane.showConfirmDialog(null, "File is created", "Generate guids.xref", JOptionPane.DEFAULT_OPTION,\r
+                                          JOptionPane.INFORMATION_MESSAGE);\r
         }\r
     }\r
 }\r