diff options
author | jlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-14 06:33:37 +0000 |
---|---|---|
committer | jlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-14 06:33:37 +0000 |
commit | 0227d24c77f78e8211dbce1478aafc2efbf93f6a (patch) | |
tree | ef1cc3442512fcd91a43a918466eea3352c94111 /Tools | |
parent | e87022aa87815dc2f2eba8583fbf0c4b368f2f75 (diff) | |
download | edk2-platforms-0227d24c77f78e8211dbce1478aafc2efbf93f6a.tar.xz |
Synchronize platform pcd automatically with MSA pcd when opening FrameworkModules of a platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1945 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
2 files changed, 23 insertions, 3 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java index b59d3420c2..cca9738a11 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java @@ -1175,8 +1175,8 @@ public class FpdFileContents { //
// ToDo Error
//
- throw new PcdDeclNotFound("No Declaration for PCD Entry " + msaPcd.getCName() + " in Module "
- + mi.getName());
+ throw new PcdDeclNotFound("No Declaration for PCD Entry " + msaPcd.getCName() + " used by Module "
+ + mi.getName() + " or its Library Instances.");
}
//
// AddItem to ModuleSA PcdBuildDefinitions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java index 00243c2460..75f7474a02 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java @@ -852,6 +852,9 @@ public class FpdFrameworkModules extends IInternalFrame { public FpdFrameworkModules(OpeningPlatformType opt) {
this(opt.getXmlFpd());
docConsole = opt;
+ if (pcdSync()) {
+ JOptionPane.showMessageDialog(frame, "PCD in this platform are synchronized with those in MSA files.");
+ }
}
private void init(PlatformSurfaceAreaDocument.PlatformSurfaceArea fpd) {
@@ -910,9 +913,26 @@ public class FpdFrameworkModules extends IInternalFrame { }
showAllModules();
-
+
}
+ private boolean pcdSync() {
+ boolean synced = false;
+ for (int i = 0; i < jTableFpdModules.getRowCount(); ++i) {
+ try {
+ if (ffc.adjustPcd(i)) {
+ synced = true;
+ }
+ }
+ catch (Exception exp) {
+ JOptionPane.showMessageDialog(frame, exp.getMessage());
+ continue;
+ }
+ }
+ return synced;
+
+ }
+
private void showAllModules() {
if (miList == null) {
|