mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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
This commit is contained in:
parent
b629771180
commit
b2d4baa6ba
@ -310,6 +310,10 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
|
|||||||
if (name != null && name.length() > 0) {
|
if (name != null && name.length() > 0) {
|
||||||
getLibInstances(lib);
|
getLibInstances(lib);
|
||||||
guid = nameToGuid(name);
|
guid = nameToGuid(name);
|
||||||
|
if (guid == null){
|
||||||
|
JOptionPane.showMessageDialog(frame, "Recommended Instance NOT exists.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] sa = new String[7];
|
String[] sa = new String[7];
|
||||||
@ -618,6 +622,15 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
|
|||||||
//
|
//
|
||||||
getLibInstances(row[cnClassName]);
|
getLibInstances(row[cnClassName]);
|
||||||
String recommendGuid = nameToGuid(row[cnRecInstName]);
|
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]);
|
sfc.genSpdLibClassDeclarations(row[cnClassName], recommendGuid, row[cnHdrFile], row[cnHelpText], row[cnSupArch], null, null, row[cnRecInstVer], null, row[cnSupMod]);
|
||||||
model.addRow(row);
|
model.addRow(row);
|
||||||
@ -939,7 +952,6 @@ public class SpdLibClassDecls extends IInternalFrame implements TableModelListen
|
|||||||
private String nameToGuid(String name) {
|
private String nameToGuid(String name) {
|
||||||
String s = null;
|
String s = null;
|
||||||
if (!libNameGuidMap.containsKey(name)) {
|
if (!libNameGuidMap.containsKey(name)) {
|
||||||
JOptionPane.showMessageDialog(frame, "Recommended Instance NOT exists.");
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user