mirror of https://github.com/acidanthera/audk.git
set pcd data type to boolean when declaring a FEATURE_FLAG usage typed pcd in package pcd declarations editor.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2025 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6f4f08890d
commit
2109b16ef8
|
@ -164,6 +164,9 @@ public class SpdPcdDefs extends IInternalFrame implements TableModelListener{
|
|||
private final int supArchMinWidth = 200;
|
||||
private final int supModMinWidth = 200;
|
||||
|
||||
// private Object boolModifyLock = new Object();
|
||||
// private boolean exclusiveUsage = false;
|
||||
|
||||
/**
|
||||
This method initializes this
|
||||
|
||||
|
@ -831,15 +834,29 @@ public class SpdPcdDefs extends IInternalFrame implements TableModelListener{
|
|||
JOptionPane.showMessageDialog(frame, "You must choose at least one usage for PCD entry.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (column <= 10 && column >= 6) {
|
||||
Vector<String> v = stringToVector(usage);
|
||||
if (compareTwoVectors(v, stringToVector(sa[6]))) {
|
||||
return;
|
||||
}
|
||||
if (v.contains("FEATURE_FLAG") && v.size() > 1) {
|
||||
if (v.contains("FEATURE_FLAG")/* && v.size() > 1 && !exclusiveUsage*/) {
|
||||
if (v.size() > 1) {
|
||||
JOptionPane.showMessageDialog(frame, "Usage Feature Flag can NOT co-exist with others.");
|
||||
return;
|
||||
}
|
||||
// synchronized (boolModifyLock){
|
||||
// exclusiveUsage = true;
|
||||
// }
|
||||
// m.setValueAt(false, row, 7);
|
||||
// m.setValueAt(false, row, 8);
|
||||
// m.setValueAt(false, row, 9);
|
||||
// m.setValueAt(false, row, 10);
|
||||
else {
|
||||
m.setValueAt("BOOLEAN", row, 3);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (column == 11) {
|
||||
|
@ -910,6 +927,7 @@ public class SpdPcdDefs extends IInternalFrame implements TableModelListener{
|
|||
jCheckBoxFixedAtBuild.setSelected(false);
|
||||
jCheckBoxDyn.setSelected(false);
|
||||
jCheckBoxDynEx.setSelected(false);
|
||||
jComboBoxDataType.setSelectedItem("BOOLEAN");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue