docConsole.setSaved(false);\r
ffc.removeBuildOptionsFfs(jTableFfs.getSelectedRow());\r
ffsTableModel.removeRow(jTableFfs.getSelectedRow());\r
+ sectionTableModel.setRowCount(0);\r
+ sectionsTableModel.setRowCount(0);\r
+ subsectionsTableModel.setRowCount(0);\r
+ ffsAttributesTableModel.setRowCount(0);\r
}\r
});\r
}\r
sectionsTableModel.removeRow(jTableFfsSections.getSelectedRow());\r
ffc.removeBuildOptionsFfsSectionsSections(jTableFfs.getSelectedRow(),\r
jTableFfsSections.getSelectedRow());\r
+ subsectionsTableModel.setRowCount(0);\r
}\r
});\r
}\r
if (moduleSa.getPcdBuildDefinition() == null || moduleSa.getPcdBuildDefinition().getPcdDataList() == null) {\r
continue;\r
}\r
- String ModuleInfo = moduleSa.getModuleGuid() + " " + moduleSa.getModuleVersion() +\r
- " " + moduleSa.getPackageGuid() + " " + moduleSa.getPackageVersion() + " " + listToString(moduleSa.getSupArchList());\r
+ String ModuleInfo = moduleSa.getModuleGuid().toLowerCase() + " " + moduleSa.getModuleVersion() +\r
+ " " + moduleSa.getPackageGuid().toLowerCase() + " " + moduleSa.getPackageVersion() + " " + listToString(moduleSa.getSupArchList());\r
List<PcdBuildDefinitionDocument.PcdBuildDefinition.PcdData> lp = moduleSa.getPcdBuildDefinition().getPcdDataList();\r
ListIterator<PcdBuildDefinitionDocument.PcdBuildDefinition.PcdData> lpi = lp.listIterator();\r
while (lpi.hasNext()) {\r
cursor.pop();\r
cursor.removeXml();\r
if (getFrameworkModulesCount() == 0) {\r
- cursor.toParent();\r
- cursor.removeXml();\r
+ cursor.dispose();\r
+ removeElement(getfpdFrameworkModules());\r
+ fpdFrameworkModules = null;\r
+ return;\r
}\r
}\r
cursor.dispose();\r
String[] s = moduleInfo.split(" ");\r
for(int i = 0; i < al.size(); ++i){\r
String consumer = al.get(i);\r
- if (consumer.contains(s[0]) && consumer.contains(s[2])){\r
+ if (consumer.contains(s[0].toLowerCase()) && consumer.contains(s[2].toLowerCase())){\r
String[] consumerPart = consumer.split(" ");\r
if (!consumerPart[4].equals(s[4])) {\r
continue;\r
if (sections == null){\r
sections = ffs.addNewSections();\r
}\r
- sections.addNewSections().setEncapsulationType(encapType);\r
+ BuildOptionsDocument.BuildOptions.Ffs.Sections.Sections2 sections2 = sections.addNewSections();\r
+ sections2.setEncapsulationType(encapType);\r
+ sections2.addNewSection().setSectionType(EfiSectionType.Enum.forString("EFI_SECTION_PE32"));\r
}\r
\r
public void removeBuildOptionsFfsSectionsSections(int i, int j) {\r
ListIterator<BuildOptionsDocument.BuildOptions.Ffs.Sections.Sections2.Section> li = sections2.getSectionList().listIterator();\r
while(li.hasNext()) {\r
BuildOptionsDocument.BuildOptions.Ffs.Sections.Sections2.Section section = li.next();\r
- if (section.isSetSectionType()) {\r
- al.add(section.getSectionType().toString());\r
- }\r
+// if (section.isSetSectionType()) {\r
+ al.add(section.getSectionType()+"");\r
+// }\r
\r
}\r
}\r
if (ffs.getSections().getSectionList() != null){\r
ListIterator<BuildOptionsDocument.BuildOptions.Ffs.Sections.Section> li = ffs.getSections().getSectionList().listIterator();\r
while (li.hasNext()) {\r
- firstLevelSection.add(li.next().getSectionType().toString());\r
+ firstLevelSection.add(li.next().getSectionType()+"");\r
}\r
}\r
if (ffs.getSections().getSectionsList() != null) {\r