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
* @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
* @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