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.Externs.ExternsIdentification;\r
+import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
* The class is used to create, update Externs section of the MSA file\r
private ExternsIdentification id = null;\r
\r
private EnumerationData ed = new EnumerationData();\r
+ \r
+ private WorkspaceTools wt = new WorkspaceTools();\r
+ \r
+ private Vector<String> vArchList = new Vector<String>();\r
\r
/**\r
This method initializes jComboBoxType \r
@param inExternsId\r
\r
**/\r
- private void init(ExternsIdentification inExternsId) {\r
+ private void init(ExternsIdentification inExternsId, ModuleIdentification mid) {\r
init();\r
this.id = inExternsId;\r
+ \r
+ //\r
+ // Init arch with module's arch\r
+ //\r
+ this.vArchList = wt.getModuleArch(mid);\r
\r
if (this.id != null) {\r
String type = id.getType();\r
@param iFrame\r
\r
**/\r
- public ExternsDlg(ExternsIdentification inExternsIdentification, IFrame iFrame) {\r
+ public ExternsDlg(ExternsIdentification inExternsIdentification, IFrame iFrame, ModuleIdentification mid) {\r
super(iFrame, true);\r
- init(inExternsIdentification);\r
+ init(inExternsIdentification, mid);\r
}\r
\r
/**\r
this.jPanelDriver.setVisible(false);\r
this.jPanelCallBack.setVisible(false);\r
this.jLabelArch.setEnabled(true);\r
- this.jArchCheckBox.setAllItemsEnabled(true);\r
+ this.jArchCheckBox.setEnabledItems(this.vArchList);\r
this.jLabelArch.setLocation(12, 87);\r
this.jArchCheckBox.setLocation(168, 87);\r
this.jLabelFeatureFlag.setLocation(12, 112);\r
this.jPanelDriver.setVisible(false);\r
this.jPanelCallBack.setVisible(false);\r
this.jLabelArch.setEnabled(true);\r
- this.jArchCheckBox.setAllItemsEnabled(true);\r
+ this.jArchCheckBox.setEnabledItems(this.vArchList);\r
this.jLabelArch.setLocation(12, 87);\r
this.jArchCheckBox.setLocation(168, 87);\r
this.jLabelFeatureFlag.setLocation(12, 112);\r
this.jPanelDriver.setVisible(true);\r
this.jPanelCallBack.setVisible(false);\r
this.jLabelArch.setEnabled(true);\r
- this.jArchCheckBox.setAllItemsEnabled(true);\r
+ this.jArchCheckBox.setEnabledItems(this.vArchList);\r
this.jLabelArch.setLocation(12, 137);\r
this.jArchCheckBox.setLocation(168, 137);\r
this.jLabelFeatureFlag.setLocation(12, 162);\r
this.jPanelDriver.setVisible(false);\r
this.jPanelCallBack.setVisible(true);\r
this.jLabelArch.setEnabled(true);\r
- this.jArchCheckBox.setAllItemsEnabled(true);\r
+ this.jArchCheckBox.setEnabledItems(this.vArchList);\r
this.jLabelArch.setLocation(12, 87);\r
this.jArchCheckBox.setLocation(168, 87);\r
this.jLabelFeatureFlag.setLocation(12, 112);\r