diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-24 01:59:27 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-24 01:59:27 +0000 |
commit | 0c61f948b21d7624c22685a29740db130471aa58 (patch) | |
tree | b786a8bc35da92c1d51c476f01c04617301e6be8 /Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard | |
parent | d12f87d3b1c080026adbdfefb459fdaf3072eab3 (diff) | |
download | edk2-platforms-0c61f948b21d7624c22685a29740db130471aa58.tar.xz |
1. Add a function in WorkspaceTools to get all packages which can be repackaged.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1835 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard')
-rw-r--r-- | Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/workspace/WorkspaceTools.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/workspace/WorkspaceTools.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/workspace/WorkspaceTools.java index 1969d07503..a90ec26955 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/workspace/WorkspaceTools.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/workspace/WorkspaceTools.java @@ -39,6 +39,7 @@ import org.tianocore.frameworkwizard.common.SaveFile; import org.tianocore.frameworkwizard.common.Sort;
import org.tianocore.frameworkwizard.common.Tools;
import org.tianocore.frameworkwizard.common.Identifications.Identification;
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;
import org.tianocore.frameworkwizard.far.FarHeader;
import org.tianocore.frameworkwizard.far.FarIdentification;
import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;
@@ -219,6 +220,32 @@ public class WorkspaceTools { return GlobalData.vPackageList;
}
+ /**
+ Get all package which match parameter isRepackagable
+
+ @param isRepackagable
+ @return
+
+ **/
+ public Vector<PackageIdentification> getAllRepackagbalePackages() {
+ Vector<PackageIdentification> v = new Vector<PackageIdentification>();
+ for (int index = 0; index < GlobalData.openingPackageList.size(); index++) {
+ OpeningPackageType opt = GlobalData.openingPackageList.getOpeningPackageByIndex(index);
+ if (opt.getXmlSpd() != null) {
+ if (opt.getXmlSpd().getPackageDefinitions() != null) {
+ if (opt.getXmlSpd().getPackageDefinitions().getRePackage()) {
+ v.addElement(opt.getId());
+ }
+ } else {
+ v.addElement(opt.getId());
+ }
+ } else {
+ v.addElement(opt.getId());
+ }
+ }
+ return v;
+ }
+
public Vector<FarIdentification> getAllFars() {
Vector<FarIdentification> v = new Vector<FarIdentification>();
|