summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-14 06:33:37 +0000
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-14 06:33:37 +0000
commit0227d24c77f78e8211dbce1478aafc2efbf93f6a (patch)
treeef1cc3442512fcd91a43a918466eea3352c94111 /Tools
parente87022aa87815dc2f2eba8583fbf0c4b368f2f75 (diff)
downloadedk2-0227d24c77f78e8211dbce1478aafc2efbf93f6a.zip
edk2-0227d24c77f78e8211dbce1478aafc2efbf93f6a.tar.gz
edk2-0227d24c77f78e8211dbce1478aafc2efbf93f6a.tar.bz2
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')
-rw-r--r--Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java4
-rw-r--r--Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java22
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 b59d342..cca9738 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 00243c2..75f7474 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) {