Fixed grammar in messages.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1368 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lhauch 2006-08-23 17:40:50 +00:00
parent 2aee15b8a1
commit 623db5caeb
8 changed files with 38 additions and 38 deletions

View File

@ -373,7 +373,7 @@ public class MsaHeader extends IInternalFrame {
jTextAreaDescription = new JTextArea(); jTextAreaDescription = new JTextArea();
jTextAreaDescription.setLineWrap(true); jTextAreaDescription.setLineWrap(true);
jTextAreaDescription.addFocusListener(this); jTextAreaDescription.addFocusListener(this);
jTextAreaDescription.setToolTipText("A verbose description of the module"); jTextAreaDescription.setToolTipText("A verbose description of the module.");
jTextAreaDescription.setWrapStyleWord(true); jTextAreaDescription.setWrapStyleWord(true);
jTextAreaDescription.setSelectionStart(0); jTextAreaDescription.setSelectionStart(0);
jTextAreaDescription.setSelectionEnd(0); jTextAreaDescription.setSelectionEnd(0);
@ -485,7 +485,7 @@ public class MsaHeader extends IInternalFrame {
jTextFieldAbstract.setLocation(new java.awt.Point(160, 110)); jTextFieldAbstract.setLocation(new java.awt.Point(160, 110));
jTextFieldAbstract.setSize(new java.awt.Dimension(320, 20)); jTextFieldAbstract.setSize(new java.awt.Dimension(320, 20));
jTextFieldAbstract.addFocusListener(this); jTextFieldAbstract.addFocusListener(this);
jTextFieldAbstract.setToolTipText("A one sentence description of this module"); jTextFieldAbstract.setToolTipText("A one sentence description of this module.");
} }
return jTextFieldAbstract; return jTextFieldAbstract;
} }
@ -519,7 +519,7 @@ public class MsaHeader extends IInternalFrame {
jTextFieldURL.setLocation(new java.awt.Point(160, 430)); jTextFieldURL.setLocation(new java.awt.Point(160, 430));
jTextFieldURL.setSize(new java.awt.Dimension(320, 20)); jTextFieldURL.setSize(new java.awt.Dimension(320, 20));
jTextFieldURL.addFocusListener(this); jTextFieldURL.addFocusListener(this);
jTextFieldURL.setToolTipText("A URL for the latest version of the license"); jTextFieldURL.setToolTipText("A URL for the latest version of the license.");
} }
return jTextFieldURL; return jTextFieldURL;
} }
@ -570,7 +570,7 @@ public class MsaHeader extends IInternalFrame {
jTextAreaCopyright.setSelectionStart(0); jTextAreaCopyright.setSelectionStart(0);
jTextAreaCopyright.setSelectionEnd(0); jTextAreaCopyright.setSelectionEnd(0);
jTextAreaCopyright.setBounds(new java.awt.Rectangle(0, 0, 320, 40)); jTextAreaCopyright.setBounds(new java.awt.Rectangle(0, 0, 320, 40));
jTextAreaCopyright.setToolTipText("One or more copyright lines"); jTextAreaCopyright.setToolTipText("One or more copyright lines.");
} }
return jTextAreaCopyright; return jTextAreaCopyright;
} }
@ -592,7 +592,7 @@ public class MsaHeader extends IInternalFrame {
+ "A module cannot contain both. <br>" + "A module cannot contain both. <br>"
+ "The GUID numbers should be identical <br>" + "The GUID numbers should be identical <br>"
+ "for a binary and source MSA, <br>" + "for a binary and source MSA, <br>"
+ "but the BINARY MSA should have <br>" + "however the BINARY MSA should have <br>"
+ "a higher version number.</html>"); + "a higher version number.</html>");
} }
return jComboBoxBinaryModule; return jComboBoxBinaryModule;
@ -609,7 +609,7 @@ public class MsaHeader extends IInternalFrame {
jTextFieldOutputFileBasename.setBounds(new java.awt.Rectangle(160, 455, 320, 20)); jTextFieldOutputFileBasename.setBounds(new java.awt.Rectangle(160, 455, 320, 20));
jTextFieldOutputFileBasename.setPreferredSize(new java.awt.Dimension(320, 20)); jTextFieldOutputFileBasename.setPreferredSize(new java.awt.Dimension(320, 20));
jTextFieldOutputFileBasename.addFocusListener(this); jTextFieldOutputFileBasename.addFocusListener(this);
jTextFieldOutputFileBasename.setToolTipText("Enter a single word for generated output file names"); jTextFieldOutputFileBasename.setToolTipText("Enter a single word for generated output file names.");
} }
return jTextFieldOutputFileBasename; return jTextFieldOutputFileBasename;
} }
@ -939,12 +939,12 @@ public class MsaHeader extends IInternalFrame {
// Check Base Name // Check Base Name
// //
if (isEmpty(this.jTextFieldBaseName.getText())) { if (isEmpty(this.jTextFieldBaseName.getText())) {
Log.wrn("Update Msa Header", "Base Name couldn't be empty"); Log.wrn("Update Msa Header", "Name must be entered!");
//this.jTextFieldBaseName.requestFocus(); //this.jTextFieldBaseName.requestFocus();
return false; return false;
} }
if (!DataValidation.isBaseName(this.jTextFieldBaseName.getText())) { if (!DataValidation.isBaseName(this.jTextFieldBaseName.getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Base Name"); Log.wrn("Update Msa Header", "Incorrect data type for Name, it must start with an alpha character!");
//this.jTextFieldBaseName.requestFocus(); //this.jTextFieldBaseName.requestFocus();
return false; return false;
} }
@ -953,12 +953,12 @@ public class MsaHeader extends IInternalFrame {
// Check Guid // Check Guid
// //
if (isEmpty(this.jTextFieldGuid.getText())) { if (isEmpty(this.jTextFieldGuid.getText())) {
Log.wrn("Update Msa Header", "Guid Value couldn't be empty"); Log.wrn("Update Msa Header", "The Guid Value must be entered!");
//this.jTextFieldGuid.requestFocus(); //this.jTextFieldGuid.requestFocus();
return false; return false;
} }
if (!DataValidation.isGuid((this.jTextFieldGuid).getText())) { if (!DataValidation.isGuid((this.jTextFieldGuid).getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Guid"); Log.wrn("Update Msa Header", "Incorrect data type for Guid, it must be registry format, 8-4-4-4-12");
//this.jTextFieldGuid.requestFocus(); //this.jTextFieldGuid.requestFocus();
return false; return false;
} }
@ -967,12 +967,12 @@ public class MsaHeader extends IInternalFrame {
// Check Version // Check Version
// //
if (isEmpty(this.jTextFieldVersion.getText())) { if (isEmpty(this.jTextFieldVersion.getText())) {
Log.wrn("Update Msa Header", "Version couldn't be empty"); Log.wrn("Update Msa Header", "Version must be entered!");
//this.jTextFieldVersion.requestFocus(); //this.jTextFieldVersion.requestFocus();
return false; return false;
} }
if (!DataValidation.isVersion(this.jTextFieldVersion.getText())) { if (!DataValidation.isVersion(this.jTextFieldVersion.getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Version"); Log.wrn("Update Msa Header", "Incorrect data type for Version, it must start with a digit.");
//this.jTextFieldVersion.requestFocus(); //this.jTextFieldVersion.requestFocus();
return false; return false;
} }
@ -981,12 +981,12 @@ public class MsaHeader extends IInternalFrame {
// Check Abstact // Check Abstact
// //
if (isEmpty(this.jTextFieldAbstract.getText())) { if (isEmpty(this.jTextFieldAbstract.getText())) {
Log.wrn("Update Msa Header", "Abstract couldn't be empty"); Log.wrn("Update Msa Header", "Abstract must be entered!");
//this.jTextFieldAbstract.requestFocus(); //this.jTextFieldAbstract.requestFocus();
return false; return false;
} }
if (!DataValidation.isAbstract(this.jTextFieldAbstract.getText())) { if (!DataValidation.isAbstract(this.jTextFieldAbstract.getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Abstract"); Log.wrn("Update Msa Header", "Incorrect data type for Abstract, is should be a sentence describing the module.");
//this.jTextFieldAbstract.requestFocus(); //this.jTextFieldAbstract.requestFocus();
return false; return false;
} }
@ -995,7 +995,7 @@ public class MsaHeader extends IInternalFrame {
// Check Description // Check Description
// //
if (isEmpty(this.jTextAreaDescription.getText())) { if (isEmpty(this.jTextAreaDescription.getText())) {
Log.wrn("Update Msa Header", "Description couldn't be empty"); Log.wrn("Update Msa Header", "Description must be entered!");
//this.jTextAreaDescription.requestFocus(); //this.jTextAreaDescription.requestFocus();
return false; return false;
} }
@ -1004,7 +1004,7 @@ public class MsaHeader extends IInternalFrame {
// Check Copyright // Check Copyright
// //
if (isEmpty(this.jTextAreaCopyright.getText())) { if (isEmpty(this.jTextAreaCopyright.getText())) {
Log.wrn("Update Msa Header", "Copyright couldn't be empty"); Log.wrn("Update Msa Header", "Copyright must be entered!");
//this.jTextFieldCopyright.requestFocus(); //this.jTextFieldCopyright.requestFocus();
return false; return false;
} }
@ -1013,7 +1013,7 @@ public class MsaHeader extends IInternalFrame {
// Check License // Check License
// //
if (isEmpty(this.jTextAreaLicense.getText())) { if (isEmpty(this.jTextAreaLicense.getText())) {
Log.wrn("Update Msa Header", "License couldn't be empty"); Log.wrn("Update Msa Header", "License must be entered!");
//this.jTextAreaLicense.requestFocus(); //this.jTextAreaLicense.requestFocus();
return false; return false;
} }
@ -1022,7 +1022,7 @@ public class MsaHeader extends IInternalFrame {
// Check Specification // Check Specification
// //
if (isEmpty(this.jTextFieldSpecification.getText())) { if (isEmpty(this.jTextFieldSpecification.getText())) {
Log.wrn("Update Msa Header", "Specification couldn't be empty"); Log.wrn("Update Msa Header", "Specification must exist.");
//this.jTextFieldSpecification.requestFocus(); //this.jTextFieldSpecification.requestFocus();
return false; return false;
} }
@ -1120,12 +1120,12 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextFieldBaseName) { if (arg0.getSource() == this.jTextFieldBaseName) {
if (isEmpty(this.jTextFieldBaseName.getText())) { if (isEmpty(this.jTextFieldBaseName.getText())) {
Log.wrn("Update Msa Header", "Base Name couldn't be empty"); Log.wrn("Update Msa Header", "The Name must be entered!");
//this.jTextFieldBaseName.requestFocus(); //this.jTextFieldBaseName.requestFocus();
return; return;
} }
if (!DataValidation.isBaseName(this.jTextFieldBaseName.getText())) { if (!DataValidation.isBaseName(this.jTextFieldBaseName.getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Base Name"); Log.wrn("Update Msa Header", "Incorrect data type for Name, it must begin with an alpha character.");
//this.jTextFieldBaseName.requestFocus(); //this.jTextFieldBaseName.requestFocus();
return; return;
} }
@ -1152,12 +1152,12 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextFieldGuid) { if (arg0.getSource() == this.jTextFieldGuid) {
if (isEmpty(this.jTextFieldGuid.getText())) { if (isEmpty(this.jTextFieldGuid.getText())) {
Log.wrn("Update Msa Header", "Guid Value couldn't be empty"); Log.wrn("Update Msa Header", "Guid must be entered!");
//this.jTextFieldGuid.requestFocus(); //this.jTextFieldGuid.requestFocus();
return; return;
} }
if (!DataValidation.isGuid((this.jTextFieldGuid).getText())) { if (!DataValidation.isGuid((this.jTextFieldGuid).getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Guid"); Log.wrn("Update Msa Header", "Incorrect data type for Guid, it must be registry format. (8-4-4-4-12)");
//this.jTextFieldGuid.requestFocus(); //this.jTextFieldGuid.requestFocus();
return; return;
} }
@ -1173,12 +1173,12 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextFieldVersion) { if (arg0.getSource() == this.jTextFieldVersion) {
if (isEmpty(this.jTextFieldVersion.getText())) { if (isEmpty(this.jTextFieldVersion.getText())) {
Log.wrn("Update Msa Header", "Version couldn't be empty"); Log.wrn("Update Msa Header", "Version must be entered!");
//this.jTextFieldVersion.requestFocus(); //this.jTextFieldVersion.requestFocus();
return; return;
} }
if (!DataValidation.isVersion(this.jTextFieldVersion.getText())) { if (!DataValidation.isVersion(this.jTextFieldVersion.getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Version"); Log.wrn("Update Msa Header", "Incorrect data type for Version, it must start with a digit.");
//this.jTextFieldVersion.requestFocus(); //this.jTextFieldVersion.requestFocus();
return; return;
} }
@ -1194,12 +1194,12 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextFieldAbstract) { if (arg0.getSource() == this.jTextFieldAbstract) {
if (isEmpty(this.jTextFieldAbstract.getText())) { if (isEmpty(this.jTextFieldAbstract.getText())) {
Log.wrn("Update Msa Header", "Abstract couldn't be empty"); Log.wrn("Update Msa Header", "Abstract must be entered!");
//this.jTextFieldAbstract.requestFocus(); //this.jTextFieldAbstract.requestFocus();
return; return;
} }
if (!DataValidation.isAbstract(this.jTextFieldAbstract.getText())) { if (!DataValidation.isAbstract(this.jTextFieldAbstract.getText())) {
Log.wrn("Update Msa Header", "Incorrect data type for Abstract"); Log.wrn("Update Msa Header", "Incorrect data type for Abstract, it must be sentence.");
//this.jTextFieldAbstract.requestFocus(); //this.jTextFieldAbstract.requestFocus();
return; return;
} }
@ -1215,7 +1215,7 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextAreaDescription) { if (arg0.getSource() == this.jTextAreaDescription) {
if (isEmpty(this.jTextAreaDescription.getText())) { if (isEmpty(this.jTextAreaDescription.getText())) {
Log.wrn("Update Msa Header", "Description couldn't be empty"); Log.wrn("Update Msa Header", "Description must be entered!");
//this.jTextAreaDescription.requestFocus(); //this.jTextAreaDescription.requestFocus();
return; return;
} }
@ -1231,7 +1231,7 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextAreaCopyright) { if (arg0.getSource() == this.jTextAreaCopyright) {
if (isEmpty(this.jTextAreaCopyright.getText())) { if (isEmpty(this.jTextAreaCopyright.getText())) {
Log.wrn("Update Msa Header", "Copyright couldn't be empty"); Log.wrn("Update Msa Header", "Copyright must be entered!");
//this.jTextFieldCopyright.requestFocus(); //this.jTextFieldCopyright.requestFocus();
return; return;
} }
@ -1247,7 +1247,7 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextAreaLicense) { if (arg0.getSource() == this.jTextAreaLicense) {
if (isEmpty(this.jTextAreaLicense.getText())) { if (isEmpty(this.jTextAreaLicense.getText())) {
Log.wrn("Update Msa Header", "License couldn't be empty"); Log.wrn("Update Msa Header", "License must be entered!");
//this.jTextAreaLicense.requestFocus(); //this.jTextAreaLicense.requestFocus();
return; return;
} }
@ -1288,7 +1288,7 @@ public class MsaHeader extends IInternalFrame {
// //
if (arg0.getSource() == this.jTextFieldOutputFileBasename) { if (arg0.getSource() == this.jTextFieldOutputFileBasename) {
if (isEmpty(this.jTextFieldOutputFileBasename.getText())) { if (isEmpty(this.jTextFieldOutputFileBasename.getText())) {
Log.wrn("Update Msa Header", "Output File Basename couldn't be empty"); Log.wrn("Update Msa Header", "Output File Basename must be entered!");
// jTextFieldOutputFileBasename.removeFocusListener(this); // jTextFieldOutputFileBasename.removeFocusListener(this);
// jTextFieldOutputFileBasename.requestFocus(); // jTextFieldOutputFileBasename.requestFocus();
// jTextFieldOutputFileBasename.addFocusListener(this); // jTextFieldOutputFileBasename.addFocusListener(this);

View File

@ -397,7 +397,7 @@ public class DataHubsDlg extends IDialog {
// Check DataHubRecord // Check DataHubRecord
// //
if (isEmpty(this.jTextFieldDataHubRecord.getText())) { if (isEmpty(this.jTextFieldDataHubRecord.getText())) {
Log.wrn("Update Hubs", "Data Hub Record must not be empty"); Log.wrn("Update Hubs", "Data Hub Record must be entered!");
return false; return false;
} }

View File

@ -406,7 +406,7 @@ public class HiiPackagesDlg extends IDialog {
// Check Hii Package Name // Check Hii Package Name
// //
if (isEmpty(this.jTextFieldName.getText())) { if (isEmpty(this.jTextFieldName.getText())) {
Log.wrn("Update Hii Packages", "Hii Package Name Record must not be empty"); Log.wrn("Update Hii Packages", "Hii Package Name Record must be entered!");
return false; return false;
} }

View File

@ -440,7 +440,7 @@ public class HobsDlg extends IDialog {
// Check Name // Check Name
// //
if (isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) { if (isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {
Log.wrn("Update Hobs", "Hob Guid C Name must not be empty"); Log.wrn("Update Hobs", "Hob Guid C Name must be entered!");
return false; return false;
} }

View File

@ -499,7 +499,7 @@ public class PCDsDlg extends IDialog implements ItemListener {
if (!isEmpty(this.jTextFieldTokenSpaceGuid.getText())) { if (!isEmpty(this.jTextFieldTokenSpaceGuid.getText())) {
if (!DataValidation.isC_NameType(this.jTextFieldTokenSpaceGuid.getText())) { if (!DataValidation.isC_NameType(this.jTextFieldTokenSpaceGuid.getText())) {
Log.wrn("Update PcdCoded", Log.wrn("Update PcdCoded",
"Incorrect data type for the selected pcd entry, please check in in spd file"); "Incorrect data type for the selected pcd entry, please check the datatype specified in the spd file");
return false; return false;
} }
} }
@ -577,7 +577,7 @@ public class PCDsDlg extends IDialog implements ItemListener {
|| pcd.getPcd(index).getType() == null || pcd.getPcd(index).getHelp() == null || pcd.getPcd(index).getType() == null || pcd.getPcd(index).getHelp() == null
|| isEmpty(pcd.getPcd(index).getHelp())) { || isEmpty(pcd.getPcd(index).getHelp())) {
Log.wrn("select pcd entry when editing msa", Log.wrn("select pcd entry when editing msa",
"The selected is defined incorrectly.\r\nPlease check it in spd file"); "The selected value is defined incorrectly.\r\nPlease check it in the spd file");
} else { } else {
this.jTextFieldTokenSpaceGuid.setText(pcd.getPcd(index).getGuidCName()); this.jTextFieldTokenSpaceGuid.setText(pcd.getPcd(index).getGuidCName());
Tools.generateComboBoxByVector(this.jComboBoxItemType, pcd.getPcd(index).getType()); Tools.generateComboBoxByVector(this.jComboBoxItemType, pcd.getPcd(index).getType());

View File

@ -101,7 +101,7 @@ public class PackageDepDlg extends IDialog implements ItemListener {
jComboBoxPackageName = new JComboBox(); jComboBoxPackageName = new JComboBox();
jComboBoxPackageName.setBounds(new java.awt.Rectangle(168, 12, 320, 20)); jComboBoxPackageName.setBounds(new java.awt.Rectangle(168, 12, 320, 20));
jComboBoxPackageName.setPreferredSize(new java.awt.Dimension(320, 20)); jComboBoxPackageName.setPreferredSize(new java.awt.Dimension(320, 20));
jComboBoxPackageName.setToolTipText("If your Module requires a package list that here."); jComboBoxPackageName.setToolTipText("If your Module requires a package, list that here.");
jComboBoxPackageName.addItemListener(this); jComboBoxPackageName.addItemListener(this);
} }
return jComboBoxPackageName; return jComboBoxPackageName;

View File

@ -454,7 +454,7 @@ public class SourceFilesDlg extends IDialog {
// Check Filename // Check Filename
// //
if (isEmpty(this.jTextFieldFileName.getText())) { if (isEmpty(this.jTextFieldFileName.getText())) {
Log.wrn("Update Source Files", "File Name couldn't be empty"); Log.wrn("Update Source Files", "File Name must be entered!");
return false; return false;
} }
if (!DataValidation.isFilename(this.jTextFieldFileName.getText())) { if (!DataValidation.isFilename(this.jTextFieldFileName.getText())) {

View File

@ -428,7 +428,7 @@ public class VariablesDlg extends IDialog {
// Check VariableName // Check VariableName
// //
if (isEmpty(this.jTextFieldVariableName.getText())) { if (isEmpty(this.jTextFieldVariableName.getText())) {
Log.wrn("Update Variables", "Variable Name must not be empty"); Log.wrn("Update Variables", "Variable Name must be entered!");
return false; return false;
} }