summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-07 07:57:58 +0000
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-07 07:57:58 +0000
commit607ef9948b4a6be7eb16c1df25c954ed0102a6e6 (patch)
tree967feb6398e62383bf3b255af0fdafb2962c5a0a /Tools
parente2f1c84a39d0d037a29bbc36327b45f945b5f766 (diff)
downloadedk2-607ef9948b4a6be7eb16c1df25c954ed0102a6e6.zip
edk2-607ef9948b4a6be7eb16c1df25c954ed0102a6e6.tar.gz
edk2-607ef9948b4a6be7eb16c1df25c954ed0102a6e6.tar.bz2
refresh Pcd data from library instance when editing the settings of FrameworkModules
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1492 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java26
1 files changed, 14 insertions, 12 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
index c80d758..0899204 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
@@ -360,17 +360,22 @@ public class FpdFileContents {
getLibraryInstances(moduleKey, saaLib);
ModuleIdentification mi = WorkspaceProfile.getModuleId(moduleKey);
Vector<ModuleIdentification> vMi = new Vector<ModuleIdentification>();
+ //
+ // create vector for module & library instance MIs.
+ //
vMi.add(mi);
+ for (int j = 0; j < saaLib.length; ++j) {
+ String libKey = saaLib[j][1] + " " + saaLib[j][2] + " " + saaLib[j][3] + " " + saaLib[j][4];
+ ModuleIdentification libMi = WorkspaceProfile.getModuleId(libKey);
+ vMi.add(libMi);
+ }
+
try {
nextPcd:for (int i = 0; i < saaModuleSaPcd.length; ++i) {
- if (WorkspaceProfile.pcdInMsa(saaModuleSaPcd[i][0], saaModuleSaPcd[i][1], mi)){
- continue;
- }
- for (int j = 0; j < saaLib.length; ++j) {
- String libKey = saaLib[j][1] + " " + saaLib[j][2] + " " + saaLib[j][3] + " " + saaLib[j][4];
- ModuleIdentification libMi = WorkspaceProfile.getModuleId(libKey);
- vMi.add(libMi);
- if (WorkspaceProfile.pcdInMsa(saaModuleSaPcd[i][0], saaModuleSaPcd[i][1], libMi)) {
+
+ for (int j = 0; j < vMi.size(); ++j) {
+ ModuleIdentification nextMi = vMi.get(j);
+ if (WorkspaceProfile.pcdInMsa(saaModuleSaPcd[i][0], saaModuleSaPcd[i][1], nextMi)) {
continue nextPcd;
}
}
@@ -379,7 +384,7 @@ public class FpdFileContents {
}
}
catch (Exception e) {
-
+ throw e;
}
//
// add new Pcd from MSA file to ModuleSA.
@@ -405,9 +410,6 @@ public class FpdFileContents {
}
}
- Map<String, XmlObject> m = new HashMap<String, XmlObject>();
- m.put("ModuleSurfaceArea", msa);
- SurfaceAreaQuery.setDoc(m);
PackageIdentification[] depPkgs = SurfaceAreaQuery.getDependencePkg(null, vMi.get(i));
PcdDeclarationsDocument.PcdDeclarations.PcdEntry spdPcd = LookupPcdDeclaration(msaPcd, depPkgs);
if (spdPcd == null) {