summaryrefslogtreecommitdiff
path: root/Tools/Source
diff options
context:
space:
mode:
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-26 01:34:05 +0000
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-26 01:34:05 +0000
commit0e8d8bc75d4b513716d22e3e6d57a9a811f48091 (patch)
tree9c5c1386c7c83b164723b9aa80840441d48c96e4 /Tools/Source
parente08433efeb382abec06fec875936586ee94d5e2a (diff)
downloadedk2-platforms-0e8d8bc75d4b513716d22e3e6d57a9a811f48091.tar.xz
1. Replace openDialog with saveDialog when generating guids.xref file
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
Diffstat (limited to 'Tools/Source')
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
index 0e0c54c345..5efa81b25d 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
@@ -3636,7 +3636,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
//
// Get guids xref and save to file
//
- int result = fc.showOpenDialog(new JPanel());
+ int result = fc.showSaveDialog(new JPanel());
if (result == JFileChooser.APPROVE_OPTION) {
Vector<String> v = wt.getAllModuleGuidXref();
if (v.size() < 1) {
@@ -3668,7 +3668,11 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
} catch (IOException e) {
Log.wrn("Fail to write file", e.getMessage());
Log.err("Fail to write file when generating guids.xref", e.getMessage());
+ return;
}
+
+ JOptionPane.showConfirmDialog(null, "File is created", "Generate guids.xref", JOptionPane.DEFAULT_OPTION,
+ JOptionPane.INFORMATION_MESSAGE);
}
}
}