import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
private StarLabel jStarLabel2 = null;\r
\r
private StarLabel jStarLabel3 = null;\r
- \r
+\r
private OpeningModuleType omt = null;\r
- \r
+\r
private ClonedFrom cf = null;\r
\r
private ModuleSurfaceAreaDocument.ModuleSurfaceArea msa = null;\r
if (iCheckBoxListArch == null) {\r
iCheckBoxListArch = new ICheckBoxList();\r
iCheckBoxListArch.addFocusListener(this);\r
+ iCheckBoxListArch.setToolTipText("<html>Deselecting a checkbox will restrict this module<br>"\r
+ + "for use with the selected architectures, <br>"\r
+ + "based on the list of items that are checked. <br>"\r
+ + "If all boxes are checked, <br>"\r
+ + "then the module will support all <br>"\r
+ + "current AND FUTURE architectures</html>");\r
}\r
return iCheckBoxListArch;\r
}\r
jComboBoxBinaryModule.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
jComboBoxBinaryModule.setPreferredSize(new java.awt.Dimension(320, 20));\r
jComboBoxBinaryModule.addFocusListener(this);\r
- jComboBoxBinaryModule.setToolTipText("Modules are either source modules which can be compiled or binary modules which are linked. A module cannot contain both. The GUID numbers should be identical for a binary and source MSA, but the BINARY MSA should have a higher version number.");\r
+ jComboBoxBinaryModule.setToolTipText("<html>Modules are either source modules <br>"\r
+ + "which can be compiled or binary <br>"\r
+ + "modules which are linked. <br>"\r
+ + "A module cannot contain both. <br>"\r
+ + "The GUID numbers should be identical <br>"\r
+ + "for a binary and source MSA, <br>"\r
+ + "but the BINARY MSA should have <br>"\r
+ + "a higher version number.</html>");\r
}\r
return jComboBoxBinaryModule;\r
}\r
this.omt = inOmt;\r
this.msa = omt.getXmlMsa();\r
if (msa.getModuleDefinitions() != null) {\r
- this.cf = msa.getModuleDefinitions().getClonedFrom(); \r
+ this.cf = msa.getModuleDefinitions().getClonedFrom();\r
}\r
init(msa.getModuleDefinitions());\r
this.setVisible(true);\r
this.iCheckBoxListArch.setAllItems(ed.getVSupportedArchitectures());\r
Tools.generateComboBoxByVector(jComboBoxBinaryModule, ed.getVBoolean());\r
}\r
- \r
+\r
private boolean check() {\r
if (isEmpty(this.jTextFieldOutputFileBasename.getText())) {\r
- Log.err("Output File Basename couldn't be empty!");\r
+ Log.wrn("Update Definitions", "Output File Basename couldn't be empty!");\r
return false;\r
}\r
if (!DataValidation.isOutputFileBasename(this.jTextFieldOutputFileBasename.getText())) {\r
- Log.err("Incorrect data type for Output File Basename");\r
+ Log.wrn("Update Definitions", "Incorrect data type for Output File Basename");\r
return false;\r
}\r
return true;\r
} else {\r
md.setBinaryModule(true);\r
}\r
- \r
+\r
//\r
// Set ClonedFrom field\r
//\r
// Save Arch list\r
//\r
md.setSupportedArchitectures(this.iCheckBoxListArch.getAllCheckedItemsString());\r
- \r
+\r
msa.setModuleDefinitions(md);\r
- \r
+\r
this.omt.setSaved(false);\r
\r
} catch (Exception e) {\r
\r
public void focusLost(FocusEvent arg0) {\r
this.save();\r
+ if (arg0.getSource() == this.jTextFieldOutputFileBasename) {\r
+ }\r
}\r
}\r