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
This commit is contained in:
jlin16 2006-09-25 08:18:26 +00:00
parent bb511931b1
commit 5342724213
2 changed files with 9 additions and 4 deletions

View File

@ -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();

View File

@ -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();