summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-07 08:47:34 +0000
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-07 08:47:34 +0000
commitb2d4baa6ba20e57e49fff76a5f73d2d6b485fc23 (patch)
tree6bd5ff5b13fafa0f1a426ce9b18ab3b2e840da16
parentb6297711809e23f322ba99177445670b56f28973 (diff)
downloadedk2-b2d4baa6ba20e57e49fff76a5f73d2d6b485fc23.zip
edk2-b2d4baa6ba20e57e49fff76a5f73d2d6b485fc23.tar.gz
edk2-b2d4baa6ba20e57e49fff76a5f73d2d6b485fc23.tar.bz2
no display "null" if no recommended instance specified in library class declaration.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1202 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdLibClassDecls.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdLibClassDecls.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdLibClassDecls.java
index 5c3260d..0ed5768 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdLibClassDecls.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdLibClassDecls.java
@@ -310,6 +310,10 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
if (name != null && name.length() > 0) {
getLibInstances(lib);
guid = nameToGuid(name);
+ if (guid == null){
+ JOptionPane.showMessageDialog(frame, "Recommended Instance NOT exists.");
+ return;
+ }
}
String[] sa = new String[7];
@@ -618,6 +622,15 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
//
getLibInstances(row[cnClassName]);
String recommendGuid = nameToGuid(row[cnRecInstName]);
+ if (row[cnRecInstName].equals("null")) {
+ row[cnRecInstName] = null;
+ }
+ else{
+ if (recommendGuid == null) {
+ JOptionPane.showMessageDialog(frame, "Recommended Instance NOT exists.");
+ return;
+ }
+ }
sfc.genSpdLibClassDeclarations(row[cnClassName], recommendGuid, row[cnHdrFile], row[cnHelpText], row[cnSupArch], null, null, row[cnRecInstVer], null, row[cnSupMod]);
model.addRow(row);
@@ -939,7 +952,6 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
private String nameToGuid(String name) {
String s = null;
if (!libNameGuidMap.containsKey(name)) {
- JOptionPane.showMessageDialog(frame, "Recommended Instance NOT exists.");
return s;
}