summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-11 01:51:51 +0000
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-11 01:51:51 +0000
commitc271c1326b7aacf837a75407233da97d6caada34 (patch)
tree06a9285a6f077e64e34a1e183a516d2b03b47810
parentb23e12fab83e06b0edabd6360552d4bb0b0d4de8 (diff)
downloadedk2-platforms-c271c1326b7aacf837a75407233da97d6caada34.tar.xz
1. Fix EDKT501: New MSA get "Please type a complete file path" waring and can't proceed
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2215 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java16
1 files changed, 7 insertions, 9 deletions
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 e2b306ac9e..6572067efe 100644
--- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java
+++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java
@@ -517,7 +517,7 @@ public class SelectModuleBelong extends IDialog {
// Check if path is valid
//
File f = new File(path);
- if (!f.isFile()) {
+ if (!f.isAbsolute()) {
Log.wrn("New File", "Please type a complete file path!");
return false;
}
@@ -539,15 +539,13 @@ public class SelectModuleBelong extends IDialog {
}
//
- // Check if path already exists
- // Currently we allow user to add multiple msa files in one same directory
- // Remove this checkpoint
+ // Check if the module is in selected package
//
-// if (GlobalData.isDuplicateRelativePath(Tools.getFilePathOnly(modulePath), mode)) {
-// Log.wrn("New File", "There already exists a same directory with a module");
-// return false;
-// }
-
+ if (Tools.getFilePathOnly(modulePath).indexOf(Tools.getFilePathOnly(packagePath)) < 0) {
+ Log.wrn("New File", "This module should be in the directory of selected package!");
+ return false;
+ }
+
//
// Check if Guid+Version is unique
//