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.Events.EventsIdentification;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
* @param inEventsId\r
* \r
*/\r
- private void init(EventsIdentification inEventsId) {\r
+ private void init(EventsIdentification inEventsId, ModuleIdentification mid) {\r
init();\r
this.id = inEventsId;\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.jComboBoxEventsType.setSelectedItem(id.getType());\r
* @param iFrame\r
* \r
*/\r
- public EventsDlg(EventsIdentification inEventsIdentification, IFrame iFrame) {\r
+ public EventsDlg(EventsIdentification inEventsIdentification, IFrame iFrame, ModuleIdentification mid) {\r
super(iFrame, true);\r
- init(inEventsIdentification);\r
+ init(inEventsIdentification, mid);\r
}\r
\r
/**\r