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 c22f1f0..a9c9820 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