1. Fix the bug for "C name displayed in dialog to edit PCD is not correct"

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1200 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hche10x 2006-08-07 07:59:53 +00:00
parent 4dbd074e66
commit 74c0c087a2
1 changed files with 6 additions and 1 deletions

View File

@ -311,7 +311,12 @@ public class PCDsDlg extends IDialog implements ItemListener {
this.id = inPcdCodedId;
if (this.id != null) {
this.jComboBoxCName.setSelectedItem(id.getName());
for (int index = 0; index < this.jComboBoxCName.getItemCount(); index++) {
if (this.jComboBoxCName.getItemAt(index).toString().equals(id.getName())) {
this.jComboBoxCName.setSelectedIndex(index);
break;
}
}
this.jTextFieldTokenSpaceGuid.setText(id.getGuid());
this.jTextFieldDefaultValue.setText(id.getValue());
this.jComboBoxUsage.setSelectedItem(id.getUsage());