diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-26 00:47:40 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-26 00:47:40 +0000 |
commit | e08433efeb382abec06fec875936586ee94d5e2a (patch) | |
tree | 16fdefce729310a9299dbd71337e98f8e1264106 /Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java | |
parent | ee2db093289707e787eeea571c0180c2376fac95 (diff) | |
download | edk2-platforms-e08433efeb382abec06fec875936586ee94d5e2a.tar.xz |
1. Fix EDKT321 A module's all top level elements' arch should be in range of the module's arch
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1620 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java')
-rw-r--r-- | Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java index d13e6ccc07..34f7ba0d4e 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java @@ -35,6 +35,7 @@ import org.tianocore.frameworkwizard.common.ui.ArchCheckBox; import org.tianocore.frameworkwizard.common.ui.IDialog;
import org.tianocore.frameworkwizard.common.ui.IFrame;
import org.tianocore.frameworkwizard.common.ui.StarLabel;
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;
import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesIdentification;
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;
@@ -273,9 +274,14 @@ public class VariablesDlg extends IDialog { * @param inVariablesId
*
*/
- private void init(VariablesIdentification inVariablesId) {
+ private void init(VariablesIdentification inVariablesId, ModuleIdentification mid) {
init();
this.id = inVariablesId;
+
+ //
+ // Init arch with module's arch
+ //
+ this.jArchCheckBox.setEnabledItems(wt.getModuleArch(mid));
if (this.id != null) {
this.jTextFieldVariableName.setText(id.getName());
@@ -294,9 +300,9 @@ public class VariablesDlg extends IDialog { * @param iFrame
*
*/
- public VariablesDlg(VariablesIdentification inVariablesIdentification, IFrame iFrame) {
+ public VariablesDlg(VariablesIdentification inVariablesIdentification, IFrame iFrame, ModuleIdentification mid) {
super(iFrame, true);
- init(inVariablesIdentification);
+ init(inVariablesIdentification, mid);
}
/**
|