]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleDefinitions.java
1. Wrap text by word when showing a message box
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / ui / ModuleDefinitions.java
index 8fd573cc1c55b813a0075c3df73e04480df2d66e..fa0963d6d8e847c308cd0728d5cdd8c0ef7494b4 100644 (file)
@@ -26,7 +26,6 @@ import javax.swing.JComboBox;
 import org.tianocore.ModuleDefinitionsDocument;\r
 import org.tianocore.ModuleSurfaceAreaDocument;\r
 import org.tianocore.ModuleDefinitionsDocument.ModuleDefinitions.ClonedFrom;\r
-import org.tianocore.frameworkwizard.common.DataType;\r
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
@@ -137,7 +136,12 @@ public class ModuleDefinitions extends IInternalFrame {
         if (iCheckBoxListArch == null) {\r
             iCheckBoxListArch = new ICheckBoxList();\r
             iCheckBoxListArch.addFocusListener(this);\r
-            iCheckBoxListArch.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\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
@@ -153,7 +157,14 @@ public class ModuleDefinitions extends IInternalFrame {
             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
@@ -275,11 +286,11 @@ public class ModuleDefinitions extends IInternalFrame {
     \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