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
This commit is contained in:
hche10x 2006-11-30 07:45:39 +00:00
parent d9e0f88e2f
commit c942b0e8f9
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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) {
//