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.SourceFiles.SourceFilesIdentification;\r
+import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
* The class is used to create, update SourceFiles section of the MSA file\r
private String msaFileName = "";\r
\r
private EnumerationData ed = new EnumerationData();\r
+ \r
+ private WorkspaceTools wt = new WorkspaceTools();\r
\r
/**\r
This method initializes jTextFieldFileName \r
iComboBoxToolCode = new IComboBox();\r
iComboBoxToolCode.setBounds(new java.awt.Rectangle(168, 62, 340, 20));\r
iComboBoxToolCode.setPreferredSize(new java.awt.Dimension(340, 20));\r
- iComboBoxToolCode.setToolTipText("<html>You may select a specific tool command from drop down list, <br>"\r
- + "or you can DOUBLE-CLICK this fild to enter your customizing <br>"\r
+ iComboBoxToolCode.setToolTipText("<html>You may select a specific tool command from drop down list,<br>"\r
+ + "or you can DOUBLE-CLICK this field to enter your customized<br>"\r
+ "tool command.<br>"\r
+ "Press ENTER to save your input or press ESCAPE to quit</html>");\r
}\r
This is the default constructor\r
\r
**/\r
- public SourceFilesDlg(SourceFilesIdentification inSourceFilesIdentification, IFrame iFrame, String fileName) {\r
+ public SourceFilesDlg(SourceFilesIdentification inSourceFilesIdentification, IFrame iFrame, ModuleIdentification mid) {\r
super(iFrame, true);\r
- init(inSourceFilesIdentification, fileName);\r
+ init(inSourceFilesIdentification, mid);\r
}\r
\r
/**\r
@param inSourceFiles The input data of SourceFilesDocument.SourceFiles\r
\r
**/\r
- private void init(SourceFilesIdentification inSourceFilesIdentifications, String fileName) {\r
+ private void init(SourceFilesIdentification inSourceFilesIdentifications, ModuleIdentification mid) {\r
init();\r
- //this.sfid = inSourceFilesIdentifications;\r
- this.msaFileName = fileName;\r
+ this.msaFileName = mid.getPath();\r
+ \r
+ //\r
+ // Init arch with module's arch\r
+ //\r
+ this.jArchCheckBox.setEnabledItems(wt.getModuleArch(mid));\r
\r
if (inSourceFilesIdentifications != null) {\r
this.jTextFieldFileName.setText(inSourceFilesIdentifications.getFilename());\r