diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-30 07:45:39 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-30 07:45:39 +0000 |
commit | c942b0e8f91e0d332524dd548a4fe450313c8fb6 (patch) | |
tree | ed27572a9a7ce019321014fa325e3fffad5cfc7f /Tools | |
parent | d9e0f88e2f24c63f3d0456e928887a273a880661 (diff) | |
download | edk2-c942b0e8f91e0d332524dd548a4fe450313c8fb6.zip edk2-c942b0e8f91e0d332524dd548a4fe450313c8fb6.tar.gz edk2-c942b0e8f91e0d332524dd548a4fe450313c8fb6.tar.bz2 |
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')
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 d57c777..5001118 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 a052b74..70342e7 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) {
//
|