]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HobsDlg.java
1. Fix EDKT321 A module's all top level elements' arch should be in range of the...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / ui / dialog / HobsDlg.java
index 3448cb3d8901cd0dc70a2861ed4dcb8cccd74516..eaba4c6c973f92021a6f47fdac901f1492308461 100644 (file)
@@ -34,6 +34,7 @@ import org.tianocore.frameworkwizard.common.ui.ArchCheckBox;
 import org.tianocore.frameworkwizard.common.ui.IDialog;\r
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
 import org.tianocore.frameworkwizard.module.Identifications.Hobs.HobsIdentification;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
@@ -283,10 +284,15 @@ public class HobsDlg extends IDialog {
      * @param inHobsId\r
      * \r
      */\r
-    private void init(HobsIdentification inHobsId) {\r
+    private void init(HobsIdentification inHobsId, ModuleIdentification mid) {\r
         init();\r
         this.id = inHobsId;\r
-\r
+        \r
+        //\r
+        // Init arch with module's arch\r
+        //\r
+        this.jArchCheckBox.setEnabledItems(wt.getModuleArch(mid));\r
+        \r
         if (this.id != null) {\r
             this.jComboBoxGuidC_Name.setSelectedItem(id.getName());\r
             this.jComboBoxHobType.setSelectedItem(id.getType());\r
@@ -304,9 +310,9 @@ public class HobsDlg extends IDialog {
      * @param iFrame\r
      * \r
      */\r
-    public HobsDlg(HobsIdentification inHobsIdentification, IFrame iFrame) {\r
+    public HobsDlg(HobsIdentification inHobsIdentification, IFrame iFrame, ModuleIdentification mid) {\r
         super(iFrame, true);\r
-        init(inHobsIdentification);\r
+        init(inHobsIdentification, mid);\r
     }\r
 \r
     /**\r