1. Fix EDKT391 The check point of "OutputFileBasename" is missed in wizard tool

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1727 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hche10x 2006-10-12 08:08:38 +00:00
parent 322c1d686e
commit f436f72804
2 changed files with 7 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public class DataValidation {
**/
public static boolean isFileNameConvention(String arg0) {
return isMatch("[a-zA-Z][a-zA-Z0-9]*((_)*(-)*(.)*[a-zA-Z0-9]*)*", arg0);
return isMatch("[a-zA-Z](\\.?[-_a-zA-Z0-9]+)*", arg0);
}
/**

View File

@ -1363,6 +1363,12 @@ public class MsaHeader extends IInternalFrame {
// jTextFieldOutputFileBasename.addFocusListener(this);
return;
}
if (!DataValidation.isOutputFileBasename(this.jTextFieldOutputFileBasename.getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Output File Basename, it must be a valid file name");
return;
}
if (!this.jTextFieldOutputFileBasename.getText().equals(md.getOutputFileBasename())) {
this.md.setOutputFileBasename(this.jTextFieldOutputFileBasename.getText());
} else {