summaryrefslogtreecommitdiff
path: root/Tools/Source
diff options
context:
space:
mode:
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-25 08:18:26 +0000
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-25 08:18:26 +0000
commit5342724213d3797764f4deddcaf5677d7340b23a (patch)
tree8559b9cc22c2fc9ca5008aaa3192cf2ec93fd1fd /Tools/Source
parentbb511931b16d173f20394f19d2b87bd7dbde3182 (diff)
downloadedk2-5342724213d3797764f4deddcaf5677d7340b23a.zip
edk2-5342724213d3797764f4deddcaf5677d7340b23a.tar.gz
edk2-5342724213d3797764f4deddcaf5677d7340b23a.tar.bz2
do not generate version attributes when saving module order information in FV if no version data provided in ModuleSA or original BuildOptions->UserExtensions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1606 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source')
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java9
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java4
2 files changed, 9 insertions, 4 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
index 840f3e7..6ca1571 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
@@ -1761,9 +1761,14 @@ public class FpdFileContents {
for (int i = 0; i < includeModules.size(); ++i) {
cursor.beginElement(elementModule);
cursor.insertAttributeWithValue("ModuleGuid", includeModules.get(i)[0]);
- cursor.insertAttributeWithValue("ModuleVersion", includeModules.get(i)[1]);
+ if (!includeModules.get(i)[1].equals("null") && includeModules.get(i)[1].length() != 0) {
+ cursor.insertAttributeWithValue("ModuleVersion", includeModules.get(i)[1]);
+ }
cursor.insertAttributeWithValue("PackageGuid", includeModules.get(i)[2]);
- cursor.insertAttributeWithValue("PackageVersion", includeModules.get(i)[3]);
+ if (!includeModules.get(i)[3].equals("null") && includeModules.get(i)[3].length() != 0) {
+ cursor.insertAttributeWithValue("PackageVersion", includeModules.get(i)[3]);
+ }
+
cursor.insertAttributeWithValue("Arch", includeModules.get(i)[4]);
cursor.toEndToken();
cursor.toNextToken();
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java
index 869b3b6..e97004c 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java
@@ -2842,7 +2842,7 @@ public class FpdFlash extends IInternalFrame {
private JButton getJButtonInsert() {
if (jButtonInsert == null) {
jButtonInsert = new JButton();
- jButtonInsert.setText("<<");
+ jButtonInsert.setText("<");
jButtonInsert.setPreferredSize(new java.awt.Dimension(60,20));
jButtonInsert.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
@@ -2888,7 +2888,7 @@ public class FpdFlash extends IInternalFrame {
if (jButtonRemove == null) {
jButtonRemove = new JButton();
jButtonRemove.setPreferredSize(new java.awt.Dimension(60,20));
- jButtonRemove.setText(">>");
+ jButtonRemove.setText(">");
jButtonRemove.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
int selectedRowLeft = jTableModInFv.getSelectedRow();