summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-30 07:45:39 +0000
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-30 07:45:39 +0000
commitc942b0e8f91e0d332524dd548a4fe450313c8fb6 (patch)
treeed27572a9a7ce019321014fa325e3fffad5cfc7f /Tools
parentd9e0f88e2f24c63f3d0456e928887a273a880661 (diff)
downloadedk2-platforms-c942b0e8f91e0d332524dd548a4fe450313c8fb6.tar.xz
1. Fix EDKT476 Wizard gives wrong warning messsage that confuses user
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2040 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java3
-rw-r--r--Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java11
2 files changed, 11 insertions, 3 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
index d57c777f1d..5001118ab0 100644
--- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
+++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
@@ -126,8 +126,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
//
// Set ToolTipText Show Time
//
- static { ToolTipManager.sharedInstance().setDismissDelay(18000);}
-
+ static { ToolTipManager.sharedInstance().setDismissDelay(18000); }
///
/// Used to record current operation target
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java
index a052b74d3e..70342e73cd 100644
--- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java
+++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java
@@ -477,6 +477,7 @@ public class SelectModuleBelong extends IDialog {
**/
public boolean check() {
String path = this.jTextFieldFilePath.getText();
+ path = Tools.addPathExt(path, mode);
String guid = this.jTextFieldGuid.getText();
String version = this.jTextFieldVersion.getText();
@@ -512,7 +513,15 @@ public class SelectModuleBelong extends IDialog {
return false;
}
-
+ //
+ // Check if path is valid
+ //
+ File f = new File(path);
+ if (!f.isFile()) {
+ Log.wrn("New File", "Please type a complete file path!");
+ return false;
+ }
+ f = null;
if (mode == DataType.RETURN_TYPE_MODULE_SURFACE_AREA) {
//