]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.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 / VariablesDlg.java
index d13e6ccc07f84221888d4108963d4276326799b5..34f7ba0d4efe4562225b3b0f4c9103db706e4d5a 100644 (file)
@@ -35,6 +35,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.Variables.VariablesIdentification;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
@@ -273,9 +274,14 @@ public class VariablesDlg extends IDialog {
      * @param inVariablesId\r
      * \r
      */\r
-    private void init(VariablesIdentification inVariablesId) {\r
+    private void init(VariablesIdentification inVariablesId, ModuleIdentification mid) {\r
         init();\r
         this.id = inVariablesId;\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.jTextFieldVariableName.setText(id.getName());\r
@@ -294,9 +300,9 @@ public class VariablesDlg extends IDialog {
      * @param iFrame\r
      * \r
      */\r
-    public VariablesDlg(VariablesIdentification inVariablesIdentification, IFrame iFrame) {\r
+    public VariablesDlg(VariablesIdentification inVariablesIdentification, IFrame iFrame, ModuleIdentification mid) {\r
         super(iFrame, true);\r
-        init(inVariablesIdentification);\r
+        init(inVariablesIdentification, mid);\r
     }\r
 \r
     /**\r