]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Fix the bug for "C name displayed in dialog to edit PCD is not correct"
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Aug 2006 07:59:53 +0000 (07:59 +0000)
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Aug 2006 07:59:53 +0000 (07:59 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1200 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PCDsDlg.java

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