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:
@ -126,8 +126,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
|
|||||||
//
|
//
|
||||||
// Set ToolTipText Show Time
|
// Set ToolTipText Show Time
|
||||||
//
|
//
|
||||||
static { ToolTipManager.sharedInstance().setDismissDelay(18000);}
|
static { ToolTipManager.sharedInstance().setDismissDelay(18000); }
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Used to record current operation target
|
/// Used to record current operation target
|
||||||
|
@ -477,6 +477,7 @@ public class SelectModuleBelong extends IDialog {
|
|||||||
**/
|
**/
|
||||||
public boolean check() {
|
public boolean check() {
|
||||||
String path = this.jTextFieldFilePath.getText();
|
String path = this.jTextFieldFilePath.getText();
|
||||||
|
path = Tools.addPathExt(path, mode);
|
||||||
String guid = this.jTextFieldGuid.getText();
|
String guid = this.jTextFieldGuid.getText();
|
||||||
String version = this.jTextFieldVersion.getText();
|
String version = this.jTextFieldVersion.getText();
|
||||||
|
|
||||||
@ -512,7 +513,15 @@ public class SelectModuleBelong extends IDialog {
|
|||||||
return false;
|
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) {
|
if (mode == DataType.RETURN_TYPE_MODULE_SURFACE_AREA) {
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user