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:
@@ -164,6 +164,9 @@ public class SpdPcdDefs extends IInternalFrame implements TableModelListener{
|
|||||||
private final int supArchMinWidth = 200;
|
private final int supArchMinWidth = 200;
|
||||||
private final int supModMinWidth = 200;
|
private final int supModMinWidth = 200;
|
||||||
|
|
||||||
|
// private Object boolModifyLock = new Object();
|
||||||
|
// private boolean exclusiveUsage = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method initializes this
|
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.");
|
JOptionPane.showMessageDialog(frame, "You must choose at least one usage for PCD entry.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (column <= 10 && column >= 6) {
|
if (column <= 10 && column >= 6) {
|
||||||
Vector<String> v = stringToVector(usage);
|
Vector<String> v = stringToVector(usage);
|
||||||
if (compareTwoVectors(v, stringToVector(sa[6]))) {
|
if (compareTwoVectors(v, stringToVector(sa[6]))) {
|
||||||
return;
|
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.");
|
JOptionPane.showMessageDialog(frame, "Usage Feature Flag can NOT co-exist with others.");
|
||||||
return;
|
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) {
|
if (column == 11) {
|
||||||
@@ -910,6 +927,7 @@ public class SpdPcdDefs extends IInternalFrame implements TableModelListener{
|
|||||||
jCheckBoxFixedAtBuild.setSelected(false);
|
jCheckBoxFixedAtBuild.setSelected(false);
|
||||||
jCheckBoxDyn.setSelected(false);
|
jCheckBoxDyn.setSelected(false);
|
||||||
jCheckBoxDynEx.setSelected(false);
|
jCheckBoxDynEx.setSelected(false);
|
||||||
|
jComboBoxDataType.setSelectedItem("BOOLEAN");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user