mirror of https://github.com/acidanthera/audk.git
Change parameter id in UserExtension element from Integer to String according to EDKT510 schema change.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2309 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b4fd460a67
commit
253fca1de3
|
@ -1824,8 +1824,8 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
|
||||||
//
|
//
|
||||||
// Show splash screen
|
// Show splash screen
|
||||||
//
|
//
|
||||||
SplashScreen ss = new SplashScreen();
|
//SplashScreen ss = new SplashScreen();
|
||||||
ss.setVisible(true);
|
//ss.setVisible(true);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Init Global Data
|
// Init Global Data
|
||||||
|
@ -1835,7 +1835,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
|
||||||
//
|
//
|
||||||
// Close splash screen
|
// Close splash screen
|
||||||
//
|
//
|
||||||
ss.dispose();
|
//ss.dispose();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Init the frame
|
// Init the frame
|
||||||
|
@ -2655,7 +2655,7 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
|
||||||
String path = null;
|
String path = null;
|
||||||
IDefaultMutableTreeNode belongNode = null;
|
IDefaultMutableTreeNode belongNode = null;
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
//
|
//
|
||||||
// Get selected tree node
|
// Get selected tree node
|
||||||
//
|
//
|
||||||
|
@ -2720,12 +2720,12 @@ public class FrameworkWizardUI extends IFrame implements KeyListener, MouseListe
|
||||||
.findIndexOfListById(new PlatformIdentification(
|
.findIndexOfListById(new PlatformIdentification(
|
||||||
id));
|
id));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
Log.err("double click category: " + intCategory);
|
// Log.err("double click category: " + intCategory);
|
||||||
Log.err("double click belong node: " + belongNode.toString());
|
// Log.err("double click belong node: " + belongNode.toString());
|
||||||
Log.err("double click id path: " + id);
|
// Log.err("double click id path: " + id);
|
||||||
Log.err("double click exception: " + e.getMessage());
|
// Log.err("double click exception: " + e.getMessage());
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1867,7 +1867,7 @@ public class FpdFileContents {
|
||||||
cursor.dispose();
|
cursor.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getUserExtsIncModCount (String fvName, String userId, int id) {
|
public int getUserExtsIncModCount (String fvName, String userId, String id) {
|
||||||
if (getfpdBuildOpts().getUserExtensionsList() == null) {
|
if (getfpdBuildOpts().getUserExtensionsList() == null) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1879,7 +1879,7 @@ public class FpdFileContents {
|
||||||
if (!ues.getUserID().equals(userId)) {
|
if (!ues.getUserID().equals(userId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ues.getIdentifier() == null || ues.getIdentifier() != new Integer(id).toString()) {
|
if (ues.getIdentifier() == null || !ues.getIdentifier().equals(id)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
XmlCursor cursor = ues.newCursor();
|
XmlCursor cursor = ues.newCursor();
|
||||||
|
@ -1901,7 +1901,7 @@ public class FpdFileContents {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void getUserExtsIncMods(String fvName, String userId, int id, String[][] saa) {
|
public void getUserExtsIncMods(String fvName, String userId, String id, String[][] saa) {
|
||||||
if (getfpdBuildOpts().getUserExtensionsList() == null) {
|
if (getfpdBuildOpts().getUserExtensionsList() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1921,7 +1921,7 @@ public class FpdFileContents {
|
||||||
if (cursor.toChild(elementUserExts)) {
|
if (cursor.toChild(elementUserExts)) {
|
||||||
do {
|
do {
|
||||||
cursor.push();
|
cursor.push();
|
||||||
if (cursor.getAttributeText(attribUserId).equals(userId) && cursor.getAttributeText(attribId).equals(id+"")) {
|
if (cursor.getAttributeText(attribUserId).equals(userId) && cursor.getAttributeText(attribId).equals(id)) {
|
||||||
cursor.toChild(elementFvName);
|
cursor.toChild(elementFvName);
|
||||||
String elementName = cursor.getTextValue();
|
String elementName = cursor.getTextValue();
|
||||||
if (elementName.equals(fvName)) {
|
if (elementName.equals(fvName)) {
|
||||||
|
@ -1968,7 +1968,7 @@ public class FpdFileContents {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeBuildOptionsUserExtensions (String fvName, String userId, int id) {
|
public void removeBuildOptionsUserExtensions (String fvName, String userId, String id) {
|
||||||
if (getfpdBuildOpts().getUserExtensionsList() == null) {
|
if (getfpdBuildOpts().getUserExtensionsList() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1979,7 +1979,7 @@ public class FpdFileContents {
|
||||||
if (!ues.getUserID().equals(userId)) {
|
if (!ues.getUserID().equals(userId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ues.getIdentifier()== null || ues.getIdentifier() != new Integer(id).toString()) {
|
if (ues.getIdentifier()== null || !ues.getIdentifier().equals(id)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
XmlCursor cursor = ues.newCursor();
|
XmlCursor cursor = ues.newCursor();
|
||||||
|
@ -2010,7 +2010,7 @@ public class FpdFileContents {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean moduleInBuildOptionsUserExtensions (String fvName, String userId, int id, String moduleGuid, String moduleVersion, String packageGuid, String packageVersion, String arch) {
|
public boolean moduleInBuildOptionsUserExtensions (String fvName, String userId, String id, String moduleGuid, String moduleVersion, String packageGuid, String packageVersion, String arch) {
|
||||||
boolean inList = false;
|
boolean inList = false;
|
||||||
if (getUserExtsIncModCount(fvName, userId, id) > 0) {
|
if (getUserExtsIncModCount(fvName, userId, id) > 0) {
|
||||||
XmlCursor cursor = getfpdBuildOpts().newCursor();
|
XmlCursor cursor = getfpdBuildOpts().newCursor();
|
||||||
|
@ -2028,7 +2028,7 @@ public class FpdFileContents {
|
||||||
if (cursor.toChild(elementUserExts)) {
|
if (cursor.toChild(elementUserExts)) {
|
||||||
do {
|
do {
|
||||||
cursor.push();
|
cursor.push();
|
||||||
if (cursor.getAttributeText(attribUserId).equals(userId) && cursor.getAttributeText(attribId).equals(id+"")) {
|
if (cursor.getAttributeText(attribUserId).equals(userId) && cursor.getAttributeText(attribId).equals(id)) {
|
||||||
cursor.toChild(elementFvName);
|
cursor.toChild(elementFvName);
|
||||||
String elementName = cursor.getTextValue();
|
String elementName = cursor.getTextValue();
|
||||||
if (elementName.equals(fvName)) {
|
if (elementName.equals(fvName)) {
|
||||||
|
@ -2071,7 +2071,7 @@ public class FpdFileContents {
|
||||||
return inList;
|
return inList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeModuleInBuildOptionsUserExtensions (String fvName, String userId, int id, String moduleGuid, String moduleVersion, String packageGuid, String packageVersion, String arch) {
|
public void removeModuleInBuildOptionsUserExtensions (String fvName, String userId, String id, String moduleGuid, String moduleVersion, String packageGuid, String packageVersion, String arch) {
|
||||||
//
|
//
|
||||||
// if there is only one module before remove operation, the whole user extension should be removed.
|
// if there is only one module before remove operation, the whole user extension should be removed.
|
||||||
//
|
//
|
||||||
|
@ -2097,7 +2097,7 @@ public class FpdFileContents {
|
||||||
if (cursor.toChild(elementUserExts)) {
|
if (cursor.toChild(elementUserExts)) {
|
||||||
do {
|
do {
|
||||||
cursor.push();
|
cursor.push();
|
||||||
if (cursor.getAttributeText(attribUserId).equals(userId) && cursor.getAttributeText(attribId).equals(id+"")) {
|
if (cursor.getAttributeText(attribUserId).equals(userId) && cursor.getAttributeText(attribId).equals(id)) {
|
||||||
cursor.toChild(elementFvName);
|
cursor.toChild(elementFvName);
|
||||||
String elementName = cursor.getTextValue();
|
String elementName = cursor.getTextValue();
|
||||||
if (elementName.equals(fvName)) {
|
if (elementName.equals(fvName)) {
|
||||||
|
@ -2138,7 +2138,7 @@ public class FpdFileContents {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addModuleIntoBuildOptionsUserExtensions (String fvName, String userId, int id, String moduleGuid, String moduleVersion, String packageGuid, String packageVersion, String arch) {
|
public void addModuleIntoBuildOptionsUserExtensions (String fvName, String userId, String id, String moduleGuid, String moduleVersion, String packageGuid, String packageVersion, String arch) {
|
||||||
if (moduleInBuildOptionsUserExtensions (fvName, userId, id, moduleGuid, moduleVersion, packageGuid, packageVersion, arch)) {
|
if (moduleInBuildOptionsUserExtensions (fvName, userId, id, moduleGuid, moduleVersion, packageGuid, packageVersion, arch)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2151,7 +2151,7 @@ public class FpdFileContents {
|
||||||
if (!ues.getUserID().equals(userId)) {
|
if (!ues.getUserID().equals(userId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ues.getIdentifier() == null || ues.getIdentifier() != new Integer(id).toString()) {
|
if (ues.getIdentifier() == null || !ues.getIdentifier().equals(id)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
XmlCursor cursor = ues.newCursor();
|
XmlCursor cursor = ues.newCursor();
|
||||||
|
|
|
@ -2546,11 +2546,11 @@ class ModuleOrderPane extends JPanel implements ActionListener{
|
||||||
if (modInFvTableModel == null) {
|
if (modInFvTableModel == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int size = ffc.getUserExtsIncModCount(fvName, "IMAGES", 1);
|
int size = ffc.getUserExtsIncModCount(fvName, "IMAGES", "1");
|
||||||
|
|
||||||
if (size != -1) {
|
if (size != -1) {
|
||||||
String[][] saa = new String[size][5];
|
String[][] saa = new String[size][5];
|
||||||
ffc.getUserExtsIncMods(fvName, "IMAGES", 1, saa);
|
ffc.getUserExtsIncMods(fvName, "IMAGES", "1", saa);
|
||||||
|
|
||||||
for (int i = 0; i < size; ++i) {
|
for (int i = 0; i < size; ++i) {
|
||||||
String moduleKey = saa[i][0] + " " + saa[i][1] + " " + saa[i][2] + " " + saa[i][3];
|
String moduleKey = saa[i][0] + " " + saa[i][1] + " " + saa[i][2] + " " + saa[i][3];
|
||||||
|
@ -3110,7 +3110,7 @@ class ModuleOrderPane extends JPanel implements ActionListener{
|
||||||
ffc.updateFvBindingInModuleSA(moduleInfo, title);
|
ffc.updateFvBindingInModuleSA(moduleInfo, title);
|
||||||
|
|
||||||
}
|
}
|
||||||
ffc.removeBuildOptionsUserExtensions(title, "IMAGES", 1);
|
ffc.removeBuildOptionsUserExtensions(title, "IMAGES", "1");
|
||||||
ffc.genBuildOptionsUserExtensions(title, "IMAGES", "1", outputFileName, vModInFv);
|
ffc.genBuildOptionsUserExtensions(title, "IMAGES", "1", outputFileName, vModInFv);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -760,7 +760,7 @@ public class FpdFrameworkModules extends IInternalFrame {
|
||||||
if (fvBindings != null) {
|
if (fvBindings != null) {
|
||||||
String[] fvArray = fvBindings.split(" ");
|
String[] fvArray = fvBindings.split(" ");
|
||||||
for (int i = 0; i < fvArray.length; ++i) {
|
for (int i = 0; i < fvArray.length; ++i) {
|
||||||
ffc.removeModuleInBuildOptionsUserExtensions(fvArray[i].trim(), "IMAGES", 1, mg, mv, pg, pv, arch);
|
ffc.removeModuleInBuildOptionsUserExtensions(fvArray[i].trim(), "IMAGES", "1", mg, mv, pg, pv, arch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1401,7 +1401,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
|
||||||
//
|
//
|
||||||
oldFvList.removeAll(newFvList);
|
oldFvList.removeAll(newFvList);
|
||||||
for (int j = 0; j < oldFvList.size(); ++j) {
|
for (int j = 0; j < oldFvList.size(); ++j) {
|
||||||
ffc.removeModuleInBuildOptionsUserExtensions(oldFvList.get(j), "IMAGES", 1, moduleInfo[0], moduleInfo[1], moduleInfo[2], moduleInfo[3], moduleInfo[4]);
|
ffc.removeModuleInBuildOptionsUserExtensions(oldFvList.get(j), "IMAGES", "1", moduleInfo[0], moduleInfo[1], moduleInfo[2], moduleInfo[3], moduleInfo[4]);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// add module to Fvs that were not in oldFvList.
|
// add module to Fvs that were not in oldFvList.
|
||||||
|
@ -1409,7 +1409,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
|
||||||
oldFvList = getVectorFromString (originalFvBinding);
|
oldFvList = getVectorFromString (originalFvBinding);
|
||||||
newFvList.removeAll(oldFvList);
|
newFvList.removeAll(oldFvList);
|
||||||
for (int i = 0; i < newFvList.size(); ++i) {
|
for (int i = 0; i < newFvList.size(); ++i) {
|
||||||
ffc.addModuleIntoBuildOptionsUserExtensions(newFvList.get(i), "IMAGES", 1, moduleInfo[0], moduleInfo[1], moduleInfo[2], moduleInfo[3], moduleInfo[4]);
|
ffc.addModuleIntoBuildOptionsUserExtensions(newFvList.get(i), "IMAGES", "1", moduleInfo[0], moduleInfo[1], moduleInfo[2], moduleInfo[3], moduleInfo[4]);
|
||||||
}
|
}
|
||||||
docConsole.setSaved(false);
|
docConsole.setSaved(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,9 +207,9 @@ private class AprioriModuleOrderPane extends ModuleOrderPane {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showModulesInFv (String fvName) {
|
public void showModulesInFv (String fvName) {
|
||||||
int id = 1;
|
String id = "1";
|
||||||
if (forPEI) {
|
if (forPEI) {
|
||||||
id = 0;
|
id = "0";
|
||||||
}
|
}
|
||||||
int size = ffc.getUserExtsIncModCount(fvName, "APRIORI", id);
|
int size = ffc.getUserExtsIncModCount(fvName, "APRIORI", id);
|
||||||
|
|
||||||
|
@ -233,9 +233,9 @@ private class AprioriModuleOrderPane extends ModuleOrderPane {
|
||||||
|
|
||||||
public void actionPerformed(ActionEvent arg0) {
|
public void actionPerformed(ActionEvent arg0) {
|
||||||
if (arg0.getActionCommand().equals("ModuleOrderPaneOk")) {
|
if (arg0.getActionCommand().equals("ModuleOrderPaneOk")) {
|
||||||
int id = 1;
|
String id = "1";
|
||||||
if (forPEI) {
|
if (forPEI) {
|
||||||
id = 0;
|
id = "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector<String[]> vModInFv = new Vector<String[]>();
|
Vector<String[]> vModInFv = new Vector<String[]>();
|
||||||
|
@ -257,7 +257,7 @@ private class AprioriModuleOrderPane extends ModuleOrderPane {
|
||||||
}
|
}
|
||||||
|
|
||||||
ffc.removeBuildOptionsUserExtensions(fvName, "APRIORI", id);
|
ffc.removeBuildOptionsUserExtensions(fvName, "APRIORI", id);
|
||||||
ffc.genBuildOptionsUserExtensions(fvName, "APRIORI", id+"", "", vModInFv);
|
ffc.genBuildOptionsUserExtensions(fvName, "APRIORI", id, "", vModInFv);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue