git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1370
6f19259b-4bc3-4df7-8a09-
765794883524
\r
if (value > 0xFF) {\r
// "[FPD file error] The datum type of PCD %s in %s is VOID*, "+\r
\r
if (value > 0xFF) {\r
// "[FPD file error] The datum type of PCD %s in %s is VOID*, "+\r
-// "it is byte array in fact. But the element of %s exceed the byte range",\r
+// "it must be a byte array. But the element of %s exceed the byte range",\r
throw new PcdValueMalFormed (datum); \r
}\r
}\r
throw new PcdValueMalFormed (datum); \r
}\r
}\r
jTextFieldBaseName.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isUiNameType(jTextFieldBaseName.getText())) {\r
jTextFieldBaseName.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isUiNameType(jTextFieldBaseName.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Package Name is NOT UiNameType.");\r
+ JOptionPane.showMessageDialog(frame, "Package Name does not match the UiNameType datatype.");\r
return;\r
}\r
if (jTextFieldBaseName.getText().equals(ffc.getFpdHdrPlatformName())) {\r
return;\r
}\r
if (jTextFieldBaseName.getText().equals(ffc.getFpdHdrPlatformName())) {\r
jTextFieldGuid.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isGuid(jTextFieldGuid.getText())) {\r
jTextFieldGuid.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isGuid(jTextFieldGuid.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Guid is NOT GuidType.");\r
+ JOptionPane.showMessageDialog(frame, "Guid must be in registry (8-4-4-4-12) format.");\r
return;\r
}\r
if (jTextFieldGuid.getText().equals(ffc.getFpdHdrGuidValue())) {\r
return;\r
}\r
if (jTextFieldGuid.getText().equals(ffc.getFpdHdrGuidValue())) {\r
jTextFieldVersion.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isVersion(jTextFieldVersion.getText())) {\r
jTextFieldVersion.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isVersion(jTextFieldVersion.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Version is NOT version type.");\r
+ JOptionPane.showMessageDialog(frame, "Version does not match the Version datatype.");\r
return;\r
}\r
if (jTextFieldVersion.getText().equals(ffc.getFpdHdrVer())) {\r
return;\r
}\r
if (jTextFieldVersion.getText().equals(ffc.getFpdHdrVer())) {\r
jTextAreaLicense.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (jTextAreaLicense.getText().length() == 0) {\r
jTextAreaLicense.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (jTextAreaLicense.getText().length() == 0) {\r
- JOptionPane.showMessageDialog(frame, "License contents could NOT be empty.");\r
+ JOptionPane.showMessageDialog(frame, "License must be entered!");\r
return;\r
}\r
if (jTextAreaLicense.getText().equals(ffc.getFpdHdrLicense())) {\r
return;\r
}\r
if (jTextAreaLicense.getText().equals(ffc.getFpdHdrLicense())) {\r
jTextAreaDescription.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (jTextAreaDescription.getText().length() == 0) {\r
jTextAreaDescription.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (jTextAreaDescription.getText().length() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Description contents could NOT be empty.");\r
+ JOptionPane.showMessageDialog(frame, "Description must be entered.");\r
return;\r
}\r
if (jTextAreaDescription.getText().equals(ffc.getFpdHdrDescription())) {\r
return;\r
}\r
if (jTextAreaDescription.getText().equals(ffc.getFpdHdrDescription())) {\r
jTextFieldAbstract.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isAbstract(jTextFieldAbstract.getText())) {\r
jTextFieldAbstract.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isAbstract(jTextFieldAbstract.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Abstract could NOT be empty.");\r
+ JOptionPane.showMessageDialog(frame, "Abstract must be entered.");\r
return;\r
}\r
if (jTextFieldAbstract.getText().equals(ffc.getFpdHdrAbs())) {\r
return;\r
}\r
if (jTextFieldAbstract.getText().equals(ffc.getFpdHdrAbs())) {\r
jTextFieldCopyright.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isCopyright(jTextFieldCopyright.getText())) {\r
jTextFieldCopyright.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isCopyright(jTextFieldCopyright.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Copyright contents could not be empty.");\r
+ JOptionPane.showMessageDialog(frame, "Copyright must be entered.");\r
return;\r
}\r
if (jTextFieldCopyright.getText().equals(ffc.getFpdHdrCopyright())) {\r
return;\r
}\r
if (jTextFieldCopyright.getText().equals(ffc.getFpdHdrCopyright())) {\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Arch.");\r
+ JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Architecture.");\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Arch.");\r
+ JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Architecture.");\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Arch.");\r
+ JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Architecture.");\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Arch.");\r
+ JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Architecture.");\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Arch.");\r
+ JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Architecture.");\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
Vector<Object> v = new Vector<Object>();\r
getToolChain(v);\r
if (v.size() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Arch.");\r
+ JOptionPane.showMessageDialog(frame, "Platform must contain at least ONE supported Architecture.");\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
}\r
}\r
if (msaFile == null){\r
}\r
}\r
if (msaFile == null){\r
- throw new Exception("Can't find Module [" + moduleId.getName() + "] in all packages. ");\r
+ throw new Exception("Can not find Module [" + moduleId.getName() + "] in any packages in this workspace.");\r
}\r
else {\r
return msaFile;\r
}\r
else {\r
return msaFile;\r
return platformId;\r
}\r
}\r
return platformId;\r
}\r
}\r
- throw new Exception("Can't find platform [" + name + "] in current workspace. ");\r
+ throw new Exception("Can not find platform [" + name + "] in the current workspace. ");\r
}\r
\r
public synchronized static File getPackageFile(PackageIdentification packageId) throws Exception {\r
}\r
\r
public synchronized static File getPackageFile(PackageIdentification packageId) throws Exception {\r
return packageItem.getSpdFile();\r
}\r
}\r
return packageItem.getSpdFile();\r
}\r
}\r
- throw new Exception("Can't find " + packageId + " in current workspace. ");\r
+ throw new Exception("Can not find " + packageId + " in the current workspace. ");\r
}\r
\r
public synchronized static File getModuleFile(ModuleIdentification moduleId) throws Exception {\r
}\r
\r
public synchronized static File getModuleFile(ModuleIdentification moduleId) throws Exception {\r