]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Restructure some folders and files
authorhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Jul 2006 02:07:26 +0000 (02:07 +0000)
committerhche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 5 Jul 2006 02:07:26 +0000 (02:07 +0000)
2. Adjust the arithmetic of "Clone" function
3. Add image in "About" frame

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@750 6f19259b-4bc3-4df7-8a09-765794883524

102 files changed:
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/About.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/Clone.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SelectModuleBelong.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfig.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/FileOperation.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/Identification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpenFile.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningFileType.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleList.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleType.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPackageList.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPackageType.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPlatformList.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPlatformType.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/ToolChainConfigId.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/ToolChainConfigVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/IDefaultMutableTreeNode.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/ui/ITree.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/BootModes/BootModesIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/BootModes/BootModesVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/DataHubs/DataHubsIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/DataHubs/DataHubsVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Events/EventsIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Events/EventsVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Externs/ExternsIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Externs/ExternsVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Guids/GuidsIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Guids/GuidsVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/HiiPackages/HiiPackagesIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/HiiPackages/HiiPackagesVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Hobs/HobsIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Hobs/HobsVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/LibraryClass/LibraryClassIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/LibraryClass/LibraryClassVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/ModuleIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PackageDependencies/PackageDependenciesIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PackageDependencies/PackageDependenciesVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PcdCoded/PcdCodedIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PcdCoded/PcdCodedVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Ppis/PpisIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Ppis/PpisVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Protocols/ProtocolsIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Protocols/ProtocolsVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SourceFiles/SourceFilesIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SourceFiles/SourceFilesVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SystemTables/SystemTablesIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SystemTables/SystemTablesVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Variables/VariablesIdentification.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Variables/VariablesVector.java [deleted file]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/DataHubs/DataHubsIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/DataHubs/DataHubsVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Events/EventsIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Events/EventsVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Guids/GuidsIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Guids/GuidsVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/HiiPackages/HiiPackagesIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/HiiPackages/HiiPackagesVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Hobs/HobsIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Hobs/HobsVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/LibraryClass/LibraryClassIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/LibraryClass/LibraryClassVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/ModuleIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PackageDependencies/PackageDependenciesIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PackageDependencies/PackageDependenciesVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PcdCoded/PcdCodedIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PcdCoded/PcdCodedVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Ppis/PpisIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Ppis/PpisVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SystemTables/SystemTablesIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SystemTables/SystemTablesVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Variables/VariablesIdentification.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Variables/VariablesVector.java [new file with mode: 0644]
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleBootModes.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleDataHubs.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleDefinitions.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleEvents.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleExterns.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleGuids.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleHiiPackages.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleHobs.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleLibraryClassDefinitions.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModulePCDs.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModulePackageDependencies.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModulePpis.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleProtocols.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSourceFiles.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleSystemTables.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/ModuleVariables.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/MsaHeader.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/PackageIdentification.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/workspace/WorkspaceTools.java

index 0e4cfd2a989f3b23cb2b74f94f9b3c09c308da10..c27ba89ed73d4eab7457266ad6eb631ba21a5ffe 100644 (file)
@@ -25,6 +25,7 @@ import javax.swing.JPanel;
 import org.tianocore.frameworkwizard.common.DataType;\r
 import org.tianocore.frameworkwizard.common.ui.IDialog;\r
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
+import javax.swing.ImageIcon;\r
 \r
 /**\r
  The class is used to show a about window with copyright information\r
@@ -51,6 +52,8 @@ public class About extends IDialog {
 \r
     private JButton jButtonOK = null;\r
 \r
+    private JLabel jLabelImage = null;\r
+\r
     /**\r
      This method initializes jButtonOK \r
      \r
@@ -60,7 +63,7 @@ public class About extends IDialog {
     private JButton getJButtonOK() {\r
         if (jButtonOK == null) {\r
             jButtonOK = new JButton();\r
-            jButtonOK.setBounds(new java.awt.Rectangle(105, 120, 90, 20));\r
+            jButtonOK.setBounds(new java.awt.Rectangle(115,200,90,20));\r
             jButtonOK.setText("OK");\r
             jButtonOK.addActionListener(this);\r
         }\r
@@ -95,7 +98,7 @@ public class About extends IDialog {
      \r
      **/\r
     private void init() {\r
-        this.setSize(300, 200);\r
+        this.setSize(320, 265);\r
         this.setContentPane(getJContentPane());\r
         this.setTitle("About");\r
         this.getRootPane().setDefaultButton(jButtonOK);\r
@@ -110,25 +113,31 @@ public class About extends IDialog {
      **/\r
     private JPanel getJContentPane() {\r
         if (jContentPane == null) {\r
+            jLabelImage = new JLabel();\r
+            jLabelImage.setBounds(new java.awt.Rectangle(63,20,193,58));\r
+            jLabelImage.setIcon(new ImageIcon(getClass().getResource("/resources/images/logo.gif")));\r
+            \r
             jLabel2 = new JLabel();\r
-            jLabel2.setBounds(new java.awt.Rectangle(15, 80, 270, 20));\r
+            jLabel2.setBounds(new java.awt.Rectangle(25,160,270,20));\r
             jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
             jLabel2.setText("All rights reserved");\r
             jLabel1 = new JLabel();\r
-            jLabel1.setBounds(new java.awt.Rectangle(15, 50, 270, 20));\r
+            jLabel1.setBounds(new java.awt.Rectangle(25,130,270,20));\r
             jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
             jLabel1.setText("Copyright (c) 2006, Intel Corporation");\r
             jLabel = new JLabel();\r
             jLabel.setToolTipText("");\r
-            jLabel.setBounds(new java.awt.Rectangle(15, 20, 270, 20));\r
+            jLabel.setBounds(new java.awt.Rectangle(25,90,270,20));\r
             jLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
-            jLabel.setText("Framework Development Package System 1.0");\r
+            jLabel.setText("Framework Wizard 1.0");\r
             jContentPane = new JPanel();\r
             jContentPane.setLayout(null);\r
+            jContentPane.setSize(new java.awt.Dimension(320,235));\r
             jContentPane.add(jLabel, null);\r
             jContentPane.add(jLabel1, null);\r
             jContentPane.add(jLabel2, null);\r
             jContentPane.add(getJButtonOK(), null);\r
+            jContentPane.add(jLabelImage, null);\r
         }\r
         return jContentPane;\r
     }\r
index baf03795ee463b5de41dbbb95f28c32e144a4037..09e8f6d00f807a294f5e1f45585daaee8ec87e01 100644 (file)
@@ -17,6 +17,7 @@ package org.tianocore.frameworkwizard;
 import java.awt.event.ActionEvent;\r
 import java.io.File;\r
 import java.io.IOException;\r
+import java.math.BigInteger;\r
 import java.util.Vector;\r
 \r
 import javax.swing.JFileChooser;\r
@@ -36,14 +37,14 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.FileOperation;\r
 import org.tianocore.frameworkwizard.common.IFileFilter;\r
-import org.tianocore.frameworkwizard.common.Identification;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpenFile;\r
 import org.tianocore.frameworkwizard.common.SaveFile;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
 import org.tianocore.frameworkwizard.common.ui.IDialog;\r
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
 import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
 import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
 import org.tianocore.frameworkwizard.workspace.Workspace;\r
@@ -589,6 +590,20 @@ public class Clone extends IDialog {
         // Check for Module\r
         //\r
         if (mode == DataType.RETURN_TYPE_MODULE_SURFACE_AREA) {\r
+//            if (trg.indexOf(DataType.DOS_FILE_SEPARATOR) == -1 && trg.indexOf(DataType.UNIX_FILE_SEPARATOR) == -1) {\r
+//                Log.err("The module name must include a path");\r
+//                return false;\r
+//            }\r
+            trg = this.getModulePath();\r
+            if (src.equals(trg)) {\r
+                Log.err("The source and destination couldn't be same");\r
+                return false;\r
+            }\r
+            trgFile = new File(trg);\r
+            if (trgFile.exists()) {\r
+                Log.err("The target module already exists");\r
+                return false;\r
+            }\r
             return checkId();\r
         }\r
 \r
@@ -635,6 +650,7 @@ public class Clone extends IDialog {
     private void save() throws IOException, XmlException, Exception {\r
         String src = this.jTextFieldSource.getText();\r
         String trg = this.jTextFieldFilePath.getText();\r
+        Vector<String> vFiles = new Vector<String>();\r
         \r
         //\r
         // Clone Workspace\r
@@ -659,16 +675,17 @@ public class Clone extends IDialog {
             //\r
             trg = getModulePath();\r
             newId.setPath(trg);\r
+            vFiles = wt.getAllModuleFiles(src);\r
             \r
             //\r
             // First copy all files to new directory\r
             //\r
-            FileOperation.copyFolder(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
-\r
-            //\r
-            // Delete old spd file\r
-            //\r
-            FileOperation.delFile(Tools.getFilePathOnly(trg) + DataType.FILE_SEPARATOR + Tools.getFileNameOnly(src));\r
+            FileOperation.copyFile(src, trg);\r
+            for (int index = 1; index < vFiles.size(); index++) {\r
+                String oldFile = vFiles.get(index);\r
+                String newFile = vFiles.get(index).replace(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
+                FileOperation.copyFile(oldFile, newFile);\r
+            }\r
 \r
             //\r
             // Create new msa file\r
@@ -721,16 +738,24 @@ public class Clone extends IDialog {
             //\r
             trg = this.getPackagePath();\r
             newId.setPath(trg);\r
+            vFiles = wt.getAllPakcageFiles(src);\r
+            \r
+            FileOperation.copyFile(src, trg);\r
+            for (int index = 1; index < vFiles.size(); index++) {\r
+                String oldFile = vFiles.get(index);\r
+                String newFile = vFiles.get(index).replace(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
+                FileOperation.copyFile(oldFile, newFile);\r
+            }\r
             \r
             //\r
             // First copy all files to new directory\r
             //\r
-            FileOperation.copyFolder(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
+            //FileOperation.copyFolder(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
 \r
             //\r
             // Delete old spd file\r
             //\r
-            FileOperation.delFile(Tools.getFilePathOnly(trg) + DataType.FILE_SEPARATOR + Tools.getFileNameOnly(src));\r
+            //FileOperation.delFile(Tools.getFilePathOnly(trg) + DataType.FILE_SEPARATOR + Tools.getFileNameOnly(src));\r
 \r
             //\r
             // Create new spd file\r
@@ -804,6 +829,7 @@ public class Clone extends IDialog {
 \r
             this.returnType = DataType.RETURN_TYPE_PLATFORM_SURFACE_AREA;\r
         }\r
+        vFiles = null;\r
     }\r
     \r
     private String getSelectPackagePath() {\r
@@ -813,7 +839,7 @@ public class Clone extends IDialog {
     private String getModulePath() {\r
         String trg = this.jTextFieldFilePath.getText();\r
         trg = Tools.addPathExt(trg, mode);\r
-        trg = getSelectPackagePath() + DataType.FILE_SEPARATOR + trg;\r
+        trg = Tools.addFileSeparator(getSelectPackagePath()) + trg;\r
         Tools.convertPathToCurrentOsType(trg);\r
         return trg;\r
     }\r
@@ -821,7 +847,7 @@ public class Clone extends IDialog {
     private String getPackagePath() {\r
         String trg = this.jTextFieldFilePath.getText();\r
         trg = Tools.addPathExt(trg, mode);\r
-        trg = Workspace.getCurrentWorkspace() + DataType.FILE_SEPARATOR + trg;\r
+        trg = Tools.addFileSeparator(Workspace.getCurrentWorkspace()) + trg;\r
         trg = Tools.convertPathToCurrentOsType(trg);\r
         return trg;\r
     }\r
@@ -849,10 +875,18 @@ public class Clone extends IDialog {
         // Get ClonedFrom then\r
         //\r
         ModuleDefinitions.ClonedFrom cf = null;\r
+        BigInteger count = new BigInteger("-1");\r
         if (pd.getClonedFrom() == null) {\r
             cf = ModuleDefinitions.ClonedFrom.Factory.newInstance();\r
         } else {\r
             cf = pd.getClonedFrom();\r
+            if (cf != null) {\r
+                for (int index = 0; index < cf.getClonedList().size(); index++) {\r
+                    if (cf.getClonedList().get(index).getId() != null) {\r
+                        count = count.max(cf.getClonedList().get(index).getId());\r
+                    }\r
+                }\r
+            }\r
         }\r
 \r
         //\r
@@ -861,6 +895,9 @@ public class Clone extends IDialog {
         ModuleDefinitions.ClonedFrom.Cloned c = ModuleDefinitions.ClonedFrom.Cloned.Factory.newInstance();\r
         c.setModuleGuid(id.getGuid());\r
         c.setModuleVersion(id.getVersion());\r
+        c.setPackageGuid(wt.getPackageIdByModuleId(oldId).getGuid());\r
+        c.setPackageVersion(wt.getPackageIdByModuleId(oldId).getVersion());\r
+        c.setId(count.add(new BigInteger("1")));\r
 \r
         cf.addNewCloned();\r
         cf.setClonedArray(cf.getClonedList().size() - 1, c);\r
@@ -892,10 +929,18 @@ public class Clone extends IDialog {
         // Get ClonedFrom then\r
         //\r
         PackageDefinitions.ClonedFrom cf = null;\r
+        BigInteger count = new BigInteger("-1");\r
         if (pd.getClonedFrom() == null) {\r
             cf = PackageDefinitions.ClonedFrom.Factory.newInstance();\r
         } else {\r
             cf = pd.getClonedFrom();\r
+            if (cf != null) {\r
+                for (int index = 0; index < cf.getClonedList().size(); index++) {\r
+                    if (cf.getClonedList().get(index).getId() != null) {\r
+                        count = count.max(cf.getClonedList().get(index).getId());\r
+                    }\r
+                }\r
+            }\r
         }\r
 \r
         //\r
@@ -904,6 +949,7 @@ public class Clone extends IDialog {
         PackageDefinitions.ClonedFrom.Cloned c = PackageDefinitions.ClonedFrom.Cloned.Factory.newInstance();\r
         c.setPackageGuid(id.getGuid());\r
         c.setPackageVersion(id.getVersion());\r
+        c.setId(count.add(new BigInteger("1")));\r
 \r
         cf.addNewCloned();\r
         cf.setClonedArray(cf.getClonedList().size() - 1, c);\r
@@ -935,10 +981,18 @@ public class Clone extends IDialog {
         // Get ClonedFrom then\r
         //\r
         PlatformDefinitions.ClonedFrom cf = null;\r
+        BigInteger count = new BigInteger("-1");\r
         if (pd.getClonedFrom() == null) {\r
             cf = PlatformDefinitions.ClonedFrom.Factory.newInstance();\r
         } else {\r
             cf = pd.getClonedFrom();\r
+            if (cf != null) {\r
+                for (int index = 0; index < cf.getClonedList().size(); index++) {\r
+                    if (cf.getClonedList().get(index).getId() != null) {\r
+                        count = count.max(cf.getClonedList().get(index).getId());\r
+                    }\r
+                }\r
+            }\r
         }\r
 \r
         //\r
@@ -947,6 +1001,7 @@ public class Clone extends IDialog {
         PlatformDefinitions.ClonedFrom.Cloned c = PlatformDefinitions.ClonedFrom.Cloned.Factory.newInstance();\r
         c.setPlatformGuid(id.getGuid());\r
         c.setPlatformVersion(id.getVersion());\r
+        c.setId(count.add(new BigInteger("1")));\r
 \r
         cf.addNewCloned();\r
         cf.setClonedArray(cf.getClonedList().size() - 1, c);\r
index 9748e5f5e408c8e36d69949b0bc6aeba9becf7bc..e5d59195bc1e07bb60be87f25c1deffa932186a7 100644 (file)
@@ -49,22 +49,22 @@ import org.tianocore.PackageSurfaceAreaDocument;
 import org.tianocore.PlatformSurfaceAreaDocument;\r
 import org.tianocore.frameworkwizard.common.DataType;\r
 import org.tianocore.frameworkwizard.common.IFileFilter;\r
-import org.tianocore.frameworkwizard.common.Identification;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpenFile;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleList;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
-import org.tianocore.frameworkwizard.common.OpeningPackageList;\r
-import org.tianocore.frameworkwizard.common.OpeningPackageType;\r
-import org.tianocore.frameworkwizard.common.OpeningPlatformList;\r
-import org.tianocore.frameworkwizard.common.OpeningPlatformType;\r
 import org.tianocore.frameworkwizard.common.SaveFile;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleList;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageList;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformList;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;\r
 import org.tianocore.frameworkwizard.common.ui.IDefaultMutableTreeNode;\r
 import org.tianocore.frameworkwizard.common.ui.IDesktopManager;\r
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
 import org.tianocore.frameworkwizard.common.ui.ITree;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
 import org.tianocore.frameworkwizard.module.ui.ModuleBootModes;\r
 import org.tianocore.frameworkwizard.module.ui.ModuleDataHubs;\r
 import org.tianocore.frameworkwizard.module.ui.ModuleDefinitions;\r
@@ -136,7 +136,9 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
 \r
     private int currentOpeningPlatformIndex = -1;\r
 \r
-    private String windowTitle = "FrameworkWizard 1.0 ";\r
+    private String projectName = "FrameworkWizard";\r
+    \r
+    private String projectVersion = "0.5";\r
 \r
     private IDefaultMutableTreeNode dmtnRoot = null;\r
 \r
@@ -772,7 +774,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuTools.setText("Tools");\r
             jMenuTools.setMnemonic('T');\r
             jMenuTools.add(getJMenuItemToolsToolChainConfiguration());\r
-            //jMenuTools.addSeparator();\r
+            jMenuTools.addSeparator();\r
             jMenuTools.add(getJMenuItemToolsClone());\r
             //jMenuTools.addSeparator();\r
             jMenuTools.add(getJMenuItemToolsCodeScan());\r
@@ -1359,7 +1361,6 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             jMenuItemToolsToolChainConfiguration.setText("Tool Chain Configuration...");\r
             jMenuItemToolsToolChainConfiguration.setMnemonic('C');\r
             jMenuItemToolsToolChainConfiguration.addActionListener(this);\r
-            jMenuItemToolsToolChainConfiguration.setVisible(false);\r
         }\r
         return jMenuItemToolsToolChainConfiguration;\r
     }\r
@@ -1689,8 +1690,9 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         this.addComponentListener(this);\r
         this.getCompontentsFromFrameworkDatabase();\r
         this.setContentPane(getJContentPane());\r
-        this.setTitle(windowTitle + "- [" + Workspace.getCurrentWorkspace() + "]");\r
+        this.setTitle(projectName + " " + projectVersion + " " + "- [" + Workspace.getCurrentWorkspace() + "]");\r
         this.setExitType(1);\r
+\r
         //\r
         // max the window\r
         //\r
@@ -1762,6 +1764,10 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         if (arg0.getSource() == jMenuItemToolsClone) {\r
             cloneItem();\r
         }\r
+        \r
+        if (arg0.getSource() == jMenuItemToolsToolChainConfiguration) {\r
+            setupToolChainConfiguration();\r
+        }\r
 \r
         if (arg0.getSource() == jMenuItemHelpAbout) {\r
             About a = new About(this, true);\r
@@ -2876,11 +2882,24 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
             // Reinit whole window\r
             //\r
             closeAll();\r
-            this.setTitle(windowTitle + "- [" + Workspace.getCurrentWorkspace() + "]");\r
+            this.setTitle(projectName + " " + projectVersion + " " + "- [" + Workspace.getCurrentWorkspace() + "]");\r
         }\r
         sw.dispose();\r
     }\r
-\r
+    \r
+    /**\r
+    Show Tool Chain Configuration Dialog to setup Tool Chain\r
+    \r
+    **/\r
+    private void setupToolChainConfiguration() {\r
+        ToolChainConfig tcc = new ToolChainConfig(this, true);\r
+        int result = tcc.showDialog();\r
+        \r
+        if (result == DataType.RETURN_TYPE_CANCEL) {\r
+            tcc.dispose();\r
+        }\r
+    }\r
+    \r
     /**\r
      Clone selected item\r
      \r
@@ -2916,6 +2935,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
         if (category >= IDefaultMutableTreeNode.FPD_PLATFORMHEADER) {\r
             mode = DataType.RETURN_TYPE_PLATFORM_SURFACE_AREA;\r
         }\r
+        \r
         Clone c = new Clone(this, true, mode, id);\r
         int result = c.showDialog();\r
         \r
index c33e8ebec4e0f7cc29f3fe24585efaff4177cedc..6b1731dc0e46c8dead0dd1c4ef4cb8f35b6ac697 100644 (file)
@@ -41,7 +41,7 @@ import org.tianocore.frameworkwizard.common.Tools;
 import org.tianocore.frameworkwizard.common.ui.IDialog;\r
 import org.tianocore.frameworkwizard.common.ui.IFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
 import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
 import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
 import org.tianocore.frameworkwizard.workspace.Workspace;\r
@@ -441,11 +441,9 @@ public class SelectModuleBelong extends IDialog {
             String packagePath = packages.elementAt(this.jComboBoxExistingPackage.getSelectedIndex()).getPath();\r
             String modulePath = Tools.convertPathToCurrentOsType(this.jTextFieldFilePath.getText());\r
             Vector<String> msaFile = wt.getAllModulesOfPackage(packagePath);\r
-            packagePath = packagePath.substring(0, packagePath.lastIndexOf(DataType.FILE_SEPARATOR));\r
-            String path = Tools.getRelativePath(modulePath, packagePath);\r
 \r
             for (int index = 0; index < msaFile.size(); index++) {\r
-                if (msaFile.elementAt(index).equals(path)) {\r
+                if (msaFile.elementAt(index).equals(modulePath)) {\r
                     Log.err("This module is already existing in selected package");\r
                     return false;\r
                 }\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfig.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfig.java
new file mode 100644 (file)
index 0000000..393e70c
--- /dev/null
@@ -0,0 +1,265 @@
+/** @file\r
\r
+ The file is used to setup tool chain configuration\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard;\r
+\r
+import java.awt.event.ActionEvent;\r
+import java.io.File;\r
+import java.io.IOException;\r
+\r
+import javax.swing.JButton;\r
+import javax.swing.JFileChooser;\r
+import javax.swing.JPanel;\r
+import javax.swing.JScrollPane;\r
+import javax.swing.JTable;\r
+import javax.swing.table.DefaultTableModel;\r
+\r
+import org.tianocore.frameworkwizard.common.DataType;\r
+import org.tianocore.frameworkwizard.common.Log;\r
+import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.ToolChainConfigVector;\r
+import org.tianocore.frameworkwizard.common.ui.IDialog;\r
+import org.tianocore.frameworkwizard.common.ui.IFrame;\r
+import org.tianocore.frameworkwizard.workspace.Workspace;\r
+\r
+public class ToolChainConfig extends IDialog {\r
+\r
+    ///\r
+    /// Define Class Members\r
+    ///\r
+    private static final long serialVersionUID = 1486930966278269085L;\r
+\r
+    private JPanel jContentPane = null;\r
+\r
+    private JScrollPane jScrollPane = null;\r
+\r
+    private DefaultTableModel model = null;\r
+\r
+    private JTable jTable = null;\r
+\r
+    private JButton jButtonOpen = null;\r
+\r
+    private JButton jButtonSave = null;\r
+\r
+    private JButton jButtonClose = null;\r
+\r
+    private String toolsDir = Tools.addFileSeparator(Workspace.getCurrentWorkspace()) + "Tools"\r
+                              + DataType.FILE_SEPARATOR + "Conf";\r
+\r
+    private String currentFile = Tools.addFileSeparator(toolsDir) + "tools_def.template";\r
+\r
+    private ToolChainConfigVector vtcc = new ToolChainConfigVector();\r
+\r
+    /**\r
+     * This method initializes jScrollPane     \r
+     *         \r
+     * @return javax.swing.JScrollPane \r
+     */\r
+    private JScrollPane getJScrollPane() {\r
+        if (jScrollPane == null) {\r
+            jScrollPane = new JScrollPane();\r
+            jScrollPane.setBounds(new java.awt.Rectangle(15, 15, 555, 345));\r
+            jScrollPane.setViewportView(getJTable());\r
+        }\r
+        return jScrollPane;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jTable  \r
+     *         \r
+     * @return javax.swing.JTable      \r
+     */\r
+    private JTable getJTable() {\r
+        if (jTable == null) {\r
+            jTable = new JTable();\r
+            //            model = new DefaultTableModel();\r
+            //            jTable = new JTable(model);\r
+            //            jTable.setRowHeight(20);\r
+        }\r
+        return jTable;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jButtonOpen     \r
+     *         \r
+     * @return javax.swing.JButton     \r
+     */\r
+    private JButton getJButtonOpen() {\r
+        if (jButtonOpen == null) {\r
+            jButtonOpen = new JButton();\r
+            jButtonOpen.setBounds(new java.awt.Rectangle(140, 390, 120, 25));\r
+            jButtonOpen.setText("Open a file");\r
+            jButtonOpen.addActionListener(this);\r
+        }\r
+        return jButtonOpen;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jButtonSave     \r
+     *         \r
+     * @return javax.swing.JButton     \r
+     */\r
+    private JButton getJButtonSave() {\r
+        if (jButtonSave == null) {\r
+            jButtonSave = new JButton();\r
+            jButtonSave.setBounds(new java.awt.Rectangle(280, 390, 120, 25));\r
+            jButtonSave.setText("Save to a file");\r
+            jButtonSave.addActionListener(this);\r
+        }\r
+        return jButtonSave;\r
+    }\r
+\r
+    /**\r
+     * This method initializes jButtonClose    \r
+     *         \r
+     * @return javax.swing.JButton     \r
+     */\r
+    private JButton getJButtonClose() {\r
+        if (jButtonClose == null) {\r
+            jButtonClose = new JButton();\r
+            jButtonClose.setBounds(new java.awt.Rectangle(465, 390, 100, 25));\r
+            jButtonClose.setText("Close");\r
+            jButtonClose.addActionListener(this);\r
+        }\r
+        return jButtonClose;\r
+    }\r
+\r
+    /**\r
+     \r
+     @param args\r
+     \r
+     **/\r
+    public static void main(String[] args) {\r
+        // TODO Auto-generated method stub\r
+\r
+    }\r
+\r
+    /**\r
+     * This is the default constructor\r
+     */\r
+    public ToolChainConfig(IFrame parentFrame, boolean modal) {\r
+        super(parentFrame, modal);\r
+        init();\r
+    }\r
+\r
+    /**\r
+     * This method initializes this\r
+     * \r
+     * @return void\r
+     */\r
+    private void init() {\r
+        this.setSize(600, 480);\r
+        this.setContentPane(getJContentPane());\r
+        this.setTitle("Tool Chain Configuration");\r
+        this.centerWindow();\r
+\r
+        //\r
+        // Read default file\r
+        //\r
+        File f = new File(currentFile);\r
+        if (f.exists()) {\r
+            try {\r
+                vtcc.removeAll();\r
+                vtcc.parseFile(this.currentFile);\r
+                this.setTitle("Tool Chain Configuration" + " [" + currentFile + "]");\r
+            } catch (IOException e) {\r
+                Log.log(this.currentFile + "Read Error", e.getMessage());\r
+                e.printStackTrace();\r
+            }\r
+        } else {\r
+            Log.log("Open file", this.currentFile + " Not Found");\r
+        }\r
+\r
+        showTable();\r
+    }\r
+\r
+    /**\r
+     * This method initializes jContentPane\r
+     * \r
+     * @return javax.swing.JPanel\r
+     */\r
+    private JPanel getJContentPane() {\r
+        if (jContentPane == null) {\r
+            jContentPane = new JPanel();\r
+            jContentPane.setLayout(null);\r
+            jContentPane.add(getJScrollPane(), null);\r
+            jContentPane.add(getJButtonOpen(), null);\r
+            jContentPane.add(getJButtonSave(), null);\r
+            jContentPane.add(getJButtonClose(), null);\r
+        }\r
+        return jContentPane;\r
+    }\r
+\r
+    /* (non-Javadoc)\r
+     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
+     * \r
+     * Override actionPerformed to listen all actions\r
+     */\r
+    public void actionPerformed(ActionEvent arg0) {\r
+        if (arg0.getSource() == jButtonClose) {\r
+            this.setVisible(false);\r
+            this.returnType = DataType.RETURN_TYPE_CANCEL;\r
+        }\r
+\r
+        if (arg0.getSource() == jButtonOpen) {\r
+            JFileChooser fc = new JFileChooser();\r
+            fc.setAcceptAllFileFilterUsed(false);\r
+            fc.setCurrentDirectory(new File(toolsDir));\r
+\r
+            int result = fc.showSaveDialog(new JPanel());\r
+            if (result == JFileChooser.APPROVE_OPTION) {\r
+                try {\r
+                    vtcc.removeAll();\r
+                    vtcc.parseFile(fc.getSelectedFile().getPath());\r
+                    currentFile = fc.getSelectedFile().getPath();                    \r
+                    this.setTitle("Tool Chain Configuration" + " [" + currentFile + "]");\r
+                } catch (IOException e) {\r
+                    Log.err(this.currentFile + "Read Error", e.getMessage());\r
+                    e.printStackTrace();\r
+                    return;\r
+                }\r
+                this.showTable();\r
+            }\r
+        }\r
+\r
+        if (arg0.getSource() == jButtonSave) {\r
+            JFileChooser fc = new JFileChooser();\r
+            fc.setAcceptAllFileFilterUsed(false);\r
+            fc.setCurrentDirectory(new File(toolsDir));\r
+\r
+            int result = fc.showOpenDialog(new JPanel());\r
+            if (result == JFileChooser.APPROVE_OPTION) {\r
+            }\r
+        }\r
+    }\r
+\r
+    /**\r
+     Read content of vector and put then into table\r
+     \r
+     **/\r
+    private void showTable() {\r
+        model = new DefaultTableModel();\r
+        jTable = new JTable(model);\r
+        jTable.setRowHeight(20);\r
+\r
+        model.addColumn("Name");\r
+        model.addColumn("Value");\r
+        if (vtcc.size() > 0) {\r
+            for (int index = 0; index < vtcc.size(); index++) {\r
+                model.addRow(vtcc.toStringVector(index));\r
+            }\r
+        }\r
+        this.jScrollPane.setViewportView(this.jTable);\r
+    }\r
+}\r
index 21d6cfa596543e3358ee6ce8d0da4aa8b570ce51..b0802a60e81d43696596bb02e46076412f7f2754 100644 (file)
@@ -28,7 +28,7 @@ public class FileOperation {
      \r
      **/\r
     public static void main(String[] args) throws Exception {\r
-        FileOperation.newFolder("C:\\aaa\\bbb\\ccc\\ddd\\eee");\r
+        FileOperation.newFolder("C:\\aaa\\aaa\\aaa\\aaa\\aaa");\r
     }\r
 \r
     /**\r
@@ -45,14 +45,14 @@ public class FileOperation {
             if (folderPath.indexOf(DataType.FILE_SEPARATOR) > -1) {\r
                 temp = temp + folderPath.substring(0, folderPath.indexOf(DataType.FILE_SEPARATOR));\r
                 if (temp.endsWith(":")) {\r
-                    temp = temp + DataType.FILE_SEPARATOR;\r
+                    temp = Tools.addFileSeparator(temp);\r
                     folderPath = folderPath.substring(folderPath.indexOf(DataType.FILE_SEPARATOR) + DataType.FILE_SEPARATOR.length());\r
                     continue;\r
                 }\r
-                temp = temp + DataType.FILE_SEPARATOR;\r
+                temp = Tools.addFileSeparator(temp);\r
                 folderPath = folderPath.substring(folderPath.indexOf(DataType.FILE_SEPARATOR) + DataType.FILE_SEPARATOR.length());    \r
             } else {\r
-                temp = temp + DataType.FILE_SEPARATOR + folderPath;\r
+                temp = Tools.addFileSeparator(temp) + folderPath;\r
                 folderPath = "";\r
             }\r
             File f = new File(temp);\r
@@ -140,8 +140,16 @@ public class FileOperation {
      \r
      **/\r
     public static void copyFile(String oldPath, String newPath) throws Exception {\r
+        oldPath = Tools.convertPathToCurrentOsType(oldPath);\r
+        newPath = Tools.convertPathToCurrentOsType(newPath);\r
+        \r
         int byteCount = 0;\r
         File oldFile = new File(oldPath);\r
+        \r
+        File newFile = new File(Tools.getFilePathOnly(newPath));\r
+        if (!newFile.exists()) {\r
+            newFolder(Tools.getFilePathOnly(newPath));\r
+        }\r
 \r
         if (oldFile.exists()) {\r
             InputStream is = new FileInputStream(oldPath);\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/Identification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/Identification.java
new file mode 100644 (file)
index 0000000..3a8420c
--- /dev/null
@@ -0,0 +1,93 @@
+/** @file\r
\r
+ The file is used to save basic information\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+public class Identification {\r
+\r
+       ///\r
+       /// Define class members\r
+       ///\r
+    private String name;\r
+    \r
+    private String guid;\r
+    \r
+    private String version;\r
+    \r
+    private String path;\r
+    \r
+    public Identification(String name, String guid, String version) {\r
+        this.name = name;\r
+        this.guid = guid;\r
+        this.version = version;\r
+    }\r
+    \r
+    public Identification() {\r
+       \r
+    }\r
+    \r
+    public Identification(String name, String guid, String version, String path) {\r
+       this.name = name;\r
+        this.guid = guid;\r
+        this.version = version;\r
+        this.path = path;\r
+    }\r
+    \r
+    public boolean equals(Object obj) {\r
+        if (obj instanceof Identification) {\r
+            Identification id = (Identification)obj;\r
+            if (path.equals(id.path)) {\r
+            //if ( name.equals(id.name) && guid.equals(id.guid) && version.equals(id.version)) {\r
+                return true;\r
+            }\r
+            return false;\r
+        }\r
+        else {\r
+            return super.equals(obj);\r
+        }\r
+    }\r
+    \r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public void setGuid(String guid) {\r
+        this.guid = guid;\r
+    }\r
+\r
+    public void setVersion(String version) {\r
+        this.version = version;\r
+    }\r
+    \r
+       public void setPath(String path) {\r
+               this.path = path;\r
+       }\r
+\r
+    public String getGuid() {\r
+        return guid;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public String getVersion() {\r
+        return version;\r
+    }\r
+\r
+       public String getPath() {\r
+               return path;\r
+       }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpenFile.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpenFile.java
new file mode 100644 (file)
index 0000000..9e16ca1
--- /dev/null
@@ -0,0 +1,96 @@
+/** @file\r
\r
+ The file provides interface to open xml file.\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import java.io.File;\r
+import java.io.IOException;\r
+\r
+import org.apache.xmlbeans.XmlException;\r
+import org.apache.xmlbeans.XmlObject;\r
+import org.tianocore.FrameworkDatabaseDocument;\r
+import org.tianocore.ModuleSurfaceAreaDocument;\r
+import org.tianocore.PackageSurfaceAreaDocument;\r
+import org.tianocore.PlatformSurfaceAreaDocument;\r
+import org.tianocore.FrameworkDatabaseDocument.FrameworkDatabase;\r
+import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;\r
+import org.tianocore.PackageSurfaceAreaDocument.PackageSurfaceArea;\r
+import org.tianocore.PlatformSurfaceAreaDocument.PlatformSurfaceArea;\r
+import org.tianocore.frameworkwizard.common.Log;\r
+\r
+public class OpenFile {\r
+    /**\r
+     \r
+     @param args\r
+     \r
+     **/\r
+    public static void main(String[] args) {\r
+        // TODO Auto-generated method stub\r
+\r
+    }\r
+\r
+    /**\r
+     Open specificed Msa file and read its content\r
+     \r
+     @param strMsaFilePath The input data of Msa File Path\r
+     \r
+     **/\r
+    public static ModuleSurfaceArea openMsaFile(String strMsaFilePath) throws IOException, XmlException, Exception {\r
+        Log.log("Open Msa", strMsaFilePath);\r
+        File msaFile = new File(strMsaFilePath);\r
+        ModuleSurfaceAreaDocument xmlMsaDoc = (ModuleSurfaceAreaDocument) XmlObject.Factory.parse(msaFile);\r
+        return xmlMsaDoc.getModuleSurfaceArea();\r
+    }\r
+\r
+    /**\r
+     Open specificed Spd file and read its content\r
+     \r
+     @param strSpdFilePath The input data of Spd File Path\r
+     \r
+     **/\r
+    public static PackageSurfaceArea openSpdFile(String strSpdFilePath) throws IOException, XmlException, Exception {\r
+        Log.log("Open Spd", strSpdFilePath);\r
+        File spdFile = new File(strSpdFilePath);\r
+        PackageSurfaceAreaDocument xmlSpdDoc = (PackageSurfaceAreaDocument) XmlObject.Factory.parse(spdFile);\r
+        return xmlSpdDoc.getPackageSurfaceArea();\r
+    }\r
+\r
+    /**\r
+     Open specificed Fpd file and read its content\r
+     \r
+     @param strFpdFilePath The input data of Fpd File Path\r
+     \r
+     **/\r
+    public static PlatformSurfaceArea openFpdFile(String strFpdFilePath) throws IOException, XmlException,\r
+                                                                                 Exception {\r
+        Log.log("Open Fpd", strFpdFilePath);\r
+        File fpdFile = new File(strFpdFilePath);\r
+        PlatformSurfaceAreaDocument xmlFpdDoc = null;\r
+        xmlFpdDoc = (PlatformSurfaceAreaDocument) XmlObject.Factory.parse(fpdFile);\r
+        return xmlFpdDoc.getPlatformSurfaceArea();\r
+    }\r
+\r
+    /**\r
+     \r
+     Open specificed Framework Database file and read its content\r
+     \r
+     */\r
+    public static FrameworkDatabase openFrameworkDb(String strDbFilePath) throws IOException, XmlException, Exception {\r
+        Log.log("Open Framework Database", strDbFilePath);\r
+        File db = new File(strDbFilePath);\r
+        FrameworkDatabaseDocument xmlDb = null;\r
+        xmlDb = (FrameworkDatabaseDocument) XmlObject.Factory.parse(db);\r
+        return xmlDb.getFrameworkDatabase();\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningFileType.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningFileType.java
new file mode 100644 (file)
index 0000000..c75ee8d
--- /dev/null
@@ -0,0 +1,78 @@
+/** @file\r
\r
+ The file is used to define common opening file type\r
+  \r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+\r
+public class OpeningFileType {\r
+    //\r
+    // Define class members\r
+    //\r
+    \r
+    private Identification id = null;\r
+    \r
+    private boolean isSaved = true;\r
+    \r
+    private boolean isNew = false;\r
+    \r
+    private TreePath treePath = null;\r
+    \r
+    public OpeningFileType() {\r
+        \r
+    }\r
+    \r
+    public OpeningFileType(Identification identification) {\r
+        this.id = identification;\r
+    }\r
+    \r
+    public OpeningFileType(Identification identification, TreePath treePathValue) {\r
+        this.id = identification;\r
+        this.treePath = treePathValue;\r
+    }\r
+\r
+    public Identification getId() {\r
+        return id;\r
+    }\r
+\r
+    public void setId(Identification id) {\r
+        this.id = id;\r
+    }\r
+\r
+    public boolean isNew() {\r
+        return isNew;\r
+    }\r
+\r
+    public void setNew(boolean isNew) {\r
+        this.isNew = isNew;\r
+    }\r
+\r
+    public boolean isSaved() {\r
+        return isSaved;\r
+    }\r
+\r
+    public void setSaved(boolean isSaved) {\r
+        this.isSaved = isSaved;\r
+    }\r
+\r
+    public TreePath getTreePath() {\r
+        return treePath;\r
+    }\r
+\r
+    public void setTreePath(TreePath treePath) {\r
+        this.treePath = treePath;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleList.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleList.java
new file mode 100644 (file)
index 0000000..6796b17
--- /dev/null
@@ -0,0 +1,167 @@
+/** @file\r
\r
+ The file is used to define opening module list\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import java.util.Vector;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.ModuleSurfaceAreaDocument;\r
+\r
+public class OpeningModuleList {\r
+    private Vector<OpeningModuleType> vOpeningModuleList = new Vector<OpeningModuleType>();\r
+\r
+    public OpeningModuleList() {\r
+\r
+    }\r
+    public Vector<OpeningModuleType> getVOpeningModuleList() {\r
+        return vOpeningModuleList;\r
+    }\r
+\r
+    public void setVOpeningModuleList(Vector<OpeningModuleType> openingModuleList) {\r
+        vOpeningModuleList = openingModuleList;\r
+    }\r
+    \r
+    public void insertToOpeningModuleList(Identification id, ModuleSurfaceAreaDocument.ModuleSurfaceArea xmlMsa) {\r
+        vOpeningModuleList.addElement(new OpeningModuleType(id, xmlMsa));\r
+    }\r
+    \r
+    public OpeningModuleType getOpeningModuleByIndex(int index) {\r
+        if (index > -1 && index < vOpeningModuleList.size()) {\r
+            return vOpeningModuleList.elementAt(index);\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public OpeningModuleType getOpeningModuleById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningModuleList.elementAt(index);\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public int findIndexOfListById(Identification id) {\r
+        for (int index = 0; index < vOpeningModuleList.size(); index++) {\r
+            if (vOpeningModuleList.elementAt(index).getId().equals(id)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+    \r
+    public void removeFromOpeningModuleListByIndex(int index) {\r
+        if (index > -1 && index < vOpeningModuleList.size()) {\r
+            vOpeningModuleList.removeElementAt(index);\r
+        }\r
+    }\r
+    \r
+    public void removeFromOpeningModuleListById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningModuleList.removeElementAt(findIndexOfListById(id));\r
+        }\r
+    }\r
+    \r
+    public void removeAllFromOpeningModuleList() {\r
+        vOpeningModuleList.removeAllElements();\r
+    }\r
+    \r
+    public ModuleSurfaceAreaDocument.ModuleSurfaceArea getModuleSurfaceAreaFromId(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningModuleList.elementAt(index).getXmlMsa();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public boolean existsModule(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+    \r
+    public void setModuleSaved(Identification id, boolean isSaved) {\r
+        setModuleSaved(findIndexOfListById(id), isSaved);\r
+    }\r
+    \r
+    public void setModuleSaved(int index, boolean isSaved) {\r
+        if (index > -1) {\r
+            vOpeningModuleList.elementAt(index).setSaved(isSaved);\r
+        }\r
+    }\r
+    \r
+    public boolean getModuleSaved(Identification id) {\r
+        return getModuleSaved(findIndexOfListById(id));\r
+    }\r
+    \r
+    public boolean getModuleSaved(int index) {\r
+        if (index > -1) {\r
+            return vOpeningModuleList.elementAt(index).isSaved();\r
+        }\r
+        return true;\r
+    }\r
+    \r
+    public void setTreePathById(Identification id, TreePath treePath) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningModuleList.elementAt(index).setTreePath(treePath);\r
+        }\r
+    }\r
+    \r
+    public TreePath getTreePathById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningModuleList.elementAt(index).getTreePath();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public TreePath getTreePathByIndex(int index) {\r
+        if (index > -1) {\r
+            return vOpeningModuleList.elementAt(index).getTreePath();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public void setNew(Identification id, boolean isNew) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningModuleList.elementAt(index).setNew(isNew);\r
+        }\r
+    }\r
+    \r
+    public int size() {\r
+        return vOpeningModuleList.size();\r
+    }\r
+    \r
+    public boolean isSaved() {\r
+        for (int index = 0; index < this.size(); index++) {\r
+            if (!this.getModuleSaved(index)) {\r
+                return false;\r
+            }\r
+        }\r
+        return true;\r
+    }\r
+    \r
+    public boolean isOpend() {\r
+        if (this.size() > 0 ) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleType.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleType.java
new file mode 100644 (file)
index 0000000..d44c861
--- /dev/null
@@ -0,0 +1,49 @@
+/** @file\r
\r
+ The file is used to define opening module type\r
+  \r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.ModuleSurfaceAreaDocument;\r
+\r
+public class OpeningModuleType extends OpeningFileType{\r
+    //\r
+    // Define class members\r
+    //\r
+    private ModuleSurfaceAreaDocument.ModuleSurfaceArea xmlMsa = null;\r
+    \r
+    public OpeningModuleType() {\r
+        \r
+    }\r
+    \r
+    public OpeningModuleType(Identification identification, ModuleSurfaceAreaDocument.ModuleSurfaceArea msa) {\r
+        super(identification);\r
+        this.xmlMsa = msa;\r
+    }\r
+    \r
+    public OpeningModuleType(Identification identification, ModuleSurfaceAreaDocument.ModuleSurfaceArea msa, TreePath treePath) {\r
+        super(identification, treePath);\r
+        this.xmlMsa = msa;\r
+    }\r
+\r
+    public ModuleSurfaceAreaDocument.ModuleSurfaceArea getXmlMsa() {\r
+        return xmlMsa;\r
+    }\r
+\r
+    public void setXmlMsa(ModuleSurfaceAreaDocument.ModuleSurfaceArea xmlMsa) {\r
+        this.xmlMsa = xmlMsa;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPackageList.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPackageList.java
new file mode 100644 (file)
index 0000000..0b4f9a5
--- /dev/null
@@ -0,0 +1,168 @@
+/** @file\r
\r
+ The file is used to define opening package list\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import java.util.Vector;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PackageSurfaceAreaDocument;\r
+\r
+public class OpeningPackageList {\r
+    private Vector<OpeningPackageType> vOpeningPackageList = new Vector<OpeningPackageType>();\r
+\r
+    public OpeningPackageList() {\r
+\r
+    }\r
+    \r
+    public Vector<OpeningPackageType> getVOpeningPackageList() {\r
+        return vOpeningPackageList;\r
+    }\r
+\r
+    public void setVOpeningPackageList(Vector<OpeningPackageType> openingPackageList) {\r
+        vOpeningPackageList = openingPackageList;\r
+    }\r
+    \r
+    public void insertToOpeningPackageList(Identification id, PackageSurfaceAreaDocument.PackageSurfaceArea xmlMsa) {\r
+        vOpeningPackageList.addElement(new OpeningPackageType(id, xmlMsa));\r
+    }\r
+    \r
+    public OpeningPackageType getOpeningPackageByIndex(int index) {\r
+        if (index > -1 && index < vOpeningPackageList.size()) {\r
+            return vOpeningPackageList.elementAt(index);\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public OpeningPackageType getOpeningPackageById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningPackageList.elementAt(index);\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public int findIndexOfListById(Identification id) {\r
+        for (int index = 0; index < vOpeningPackageList.size(); index++) {\r
+            if (vOpeningPackageList.elementAt(index).getId().equals(id)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+    \r
+    public void removeFromOpeningPackageListByIndex(int index) {\r
+        if (index > -1 && index < vOpeningPackageList.size()) {\r
+            vOpeningPackageList.removeElementAt(index);\r
+        }\r
+    }\r
+    \r
+    public void removeFromOpeningPackageListById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningPackageList.removeElementAt(findIndexOfListById(id));\r
+        }\r
+    }\r
+    \r
+    public void removeAllFromOpeningPackageList() {\r
+        vOpeningPackageList.removeAllElements();\r
+    }\r
+    \r
+    public PackageSurfaceAreaDocument.PackageSurfaceArea getPackageSurfaceAreaFromId(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningPackageList.elementAt(index).getXmlSpd();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public boolean existsPackage(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+    \r
+    public void setPackageSaved(Identification id, boolean isSaved) {\r
+        setPackageSaved(findIndexOfListById(id), isSaved);\r
+    }\r
+    \r
+    public void setPackageSaved(int index, boolean isSaved) {\r
+        if (index > -1) {\r
+            vOpeningPackageList.elementAt(index).setSaved(isSaved);\r
+        }\r
+    }\r
+    \r
+    public boolean getPackageSaved(Identification id) {\r
+        return getPackageSaved(findIndexOfListById(id));\r
+    }\r
+    \r
+    public boolean getPackageSaved(int index) {\r
+        if (index > -1) {\r
+            return vOpeningPackageList.elementAt(index).isSaved();\r
+        }\r
+        return true;\r
+    }\r
+    \r
+    public void setTreePathById(Identification id, TreePath treePath) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningPackageList.elementAt(index).setTreePath(treePath);\r
+        }\r
+    }\r
+    \r
+    public TreePath getTreePathById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningPackageList.elementAt(index).getTreePath();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public TreePath getTreePathByIndex(int index) {\r
+        if (index > -1) {\r
+            return vOpeningPackageList.elementAt(index).getTreePath();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public void setNew(Identification id, boolean isNew) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningPackageList.elementAt(index).setNew(isNew);\r
+        }\r
+    }\r
+    \r
+    public int size() {\r
+        return vOpeningPackageList.size();\r
+    }\r
+    \r
+    public boolean isSaved() {\r
+        for (int index = 0; index < this.size(); index++) {\r
+            if (!this.getPackageSaved(index)) {\r
+                return false;\r
+            }\r
+        }\r
+        return true;\r
+    }\r
+    \r
+    public boolean isOpend() {\r
+        if (this.size() > 0 ) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPackageType.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPackageType.java
new file mode 100644 (file)
index 0000000..73df9f2
--- /dev/null
@@ -0,0 +1,48 @@
+/** @file\r
\r
+ The file is used to define opening package type\r
+  \r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PackageSurfaceAreaDocument;\r
+\r
+public class OpeningPackageType extends OpeningFileType {\r
+    //\r
+    // Define class members\r
+    //\r
+    private PackageSurfaceAreaDocument.PackageSurfaceArea xmlSpd = null;\r
+    \r
+    public OpeningPackageType() {\r
+        \r
+    }\r
+    \r
+    public OpeningPackageType(Identification identification, PackageSurfaceAreaDocument.PackageSurfaceArea spd) {\r
+        super(identification);\r
+        this.xmlSpd = spd;\r
+    }\r
+    \r
+    public OpeningPackageType(Identification identification, PackageSurfaceAreaDocument.PackageSurfaceArea spd, TreePath treePath) {\r
+        super(identification, treePath);\r
+        this.xmlSpd = spd;\r
+    }\r
+\r
+    public PackageSurfaceAreaDocument.PackageSurfaceArea getXmlSpd() {\r
+        return xmlSpd;\r
+    }\r
+\r
+    public void setXmlSpd(PackageSurfaceAreaDocument.PackageSurfaceArea xmlSpd) {\r
+        this.xmlSpd = xmlSpd;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPlatformList.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPlatformList.java
new file mode 100644 (file)
index 0000000..3389d70
--- /dev/null
@@ -0,0 +1,170 @@
+/** @file\r
\r
+ The file is used to define opening package list\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import java.util.Vector;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PlatformSurfaceAreaDocument;\r
+\r
+public class OpeningPlatformList {\r
+    \r
+    private Vector<OpeningPlatformType> vOpeningPlatformList = new Vector<OpeningPlatformType>();\r
+\r
+    public OpeningPlatformList() {\r
+\r
+    }\r
+    \r
+    public Vector<OpeningPlatformType> getVOpeningPlatformList() {\r
+        return vOpeningPlatformList;\r
+    }\r
+\r
+    public void setVOpeningPlatformList(Vector<OpeningPlatformType> openingPlatformList) {\r
+        vOpeningPlatformList = openingPlatformList;\r
+    }\r
+    \r
+    public void insertToOpeningPlatformList(Identification id, PlatformSurfaceAreaDocument.PlatformSurfaceArea xmlFpd) {\r
+        vOpeningPlatformList.addElement(new OpeningPlatformType(id, xmlFpd));\r
+    }\r
+    \r
+    public OpeningPlatformType getOpeningPlatformByIndex(int index) {\r
+        if (index > -1 && index < vOpeningPlatformList.size()) {\r
+            return vOpeningPlatformList.elementAt(index);\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public OpeningPlatformType getOpeningPlatformById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningPlatformList.elementAt(index);\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public int findIndexOfListById(Identification id) {\r
+        for (int index = 0; index < vOpeningPlatformList.size(); index++) {\r
+            if (vOpeningPlatformList.elementAt(index).getId().equals(id)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+    \r
+    public void removeFromOpeningPlatformListByIndex(int index) {\r
+        if (index > -1 && index < vOpeningPlatformList.size()) {\r
+            vOpeningPlatformList.removeElementAt(index);\r
+        }\r
+    }\r
+    \r
+    public void removeFromOpeningPlatformListById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningPlatformList.removeElementAt(findIndexOfListById(id));\r
+        }\r
+    }\r
+    \r
+    public void removeAllFromOpeningPlatformList() {\r
+        vOpeningPlatformList.removeAllElements();\r
+    }\r
+    \r
+    public PlatformSurfaceAreaDocument.PlatformSurfaceArea getPlatformSurfaceAreaFromId(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningPlatformList.elementAt(index).getXmlFpd();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public boolean existsPlatform(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+    \r
+    \r
+    public void setPlatformSaved(Identification id, boolean isSaved) {\r
+        setPlatformSaved(findIndexOfListById(id), isSaved);\r
+    }\r
+    \r
+    public void setPlatformSaved(int index, boolean isSaved) {\r
+        if (index > -1) {\r
+            vOpeningPlatformList.elementAt(index).setSaved(isSaved);\r
+        }\r
+    }\r
+    \r
+    public boolean getPlatformSaved(Identification id) {\r
+        return getPlatformSaved(findIndexOfListById(id));\r
+    }\r
+    \r
+    public boolean getPlatformSaved(int index) {\r
+        if (index > -1) {\r
+            return vOpeningPlatformList.elementAt(index).isSaved();\r
+        }\r
+        return true;\r
+    }\r
+    \r
+    public void setTreePathById(Identification id, TreePath treePath) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningPlatformList.elementAt(index).setTreePath(treePath);\r
+        }\r
+    }\r
+    \r
+    public TreePath getTreePathById(Identification id) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            return vOpeningPlatformList.elementAt(index).getTreePath();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public TreePath getTreePathByIndex(int index) {\r
+        if (index > -1) {\r
+            return vOpeningPlatformList.elementAt(index).getTreePath();\r
+        }\r
+        return null;\r
+    }\r
+    \r
+    public void setNew(Identification id, boolean isNew) {\r
+        int index = findIndexOfListById(id);\r
+        if (index > -1) {\r
+            vOpeningPlatformList.elementAt(index).setNew(isNew);\r
+        }\r
+    }\r
+    \r
+    public int size() {\r
+        return vOpeningPlatformList.size();\r
+    }\r
+    \r
+    public boolean isSaved() {\r
+        for (int index = 0; index < this.size(); index++) {\r
+            if (!this.getPlatformSaved(index)) {\r
+                return false;\r
+            }\r
+        }\r
+        return true;\r
+    }\r
+    \r
+    public boolean isOpend() {\r
+        if (this.size() > 0 ) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPlatformType.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/OpeningPlatformType.java
new file mode 100644 (file)
index 0000000..cc6a3f9
--- /dev/null
@@ -0,0 +1,48 @@
+/** @file\r
\r
+ The file is used to define opening platform type\r
+  \r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PlatformSurfaceAreaDocument;\r
+\r
+public class OpeningPlatformType extends OpeningFileType {\r
+    //\r
+    // Define class members\r
+    //\r
+    private PlatformSurfaceAreaDocument.PlatformSurfaceArea xmlFpd = null;\r
+    \r
+    public OpeningPlatformType() {\r
+        \r
+    }\r
+    \r
+    public OpeningPlatformType(Identification identification, PlatformSurfaceAreaDocument.PlatformSurfaceArea fpd) {\r
+        super(identification);\r
+        this.xmlFpd = fpd;\r
+    }\r
+    \r
+    public OpeningPlatformType(Identification identification, PlatformSurfaceAreaDocument.PlatformSurfaceArea fpd, TreePath treePath) {\r
+        super(identification, treePath);\r
+        this.xmlFpd = fpd;\r
+    }\r
+\r
+    public PlatformSurfaceAreaDocument.PlatformSurfaceArea getXmlFpd() {\r
+        return xmlFpd;\r
+    }\r
+\r
+    public void setXmlFpd(PlatformSurfaceAreaDocument.PlatformSurfaceArea xmlFpd) {\r
+        this.xmlFpd = xmlFpd;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/ToolChainConfigId.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/ToolChainConfigId.java
new file mode 100644 (file)
index 0000000..f446693
--- /dev/null
@@ -0,0 +1,55 @@
+/** @file\r
+\r
+ The file is used to define Tool Chain Configuration Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+public class ToolChainConfigId {\r
+\r
+    public static final String COMMENTS = "#";\r
+    \r
+    public static final String EQUALS = "=";\r
+    \r
+    private String name = "";\r
+    \r
+    private String value = "";\r
+    \r
+    public ToolChainConfigId(String strName, String strValue) {\r
+        this.name = strName;\r
+        this.value = strValue;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public String getValue() {\r
+        return value;\r
+    }\r
+\r
+    public void setValue(String value) {\r
+        this.value = value;\r
+    }\r
+    \r
+    public boolean equals(ToolChainConfigId id) {\r
+        if (this.name.equals(id.name)) {\r
+            return true;\r
+        } else {\r
+            return false;\r
+        }\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/ToolChainConfigVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/ToolChainConfigVector.java
new file mode 100644 (file)
index 0000000..347a669
--- /dev/null
@@ -0,0 +1,137 @@
+/** @file\r
\r
+ The file is used to define Tool Chain Configuration Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.common.Identifications;\r
+\r
+import java.io.BufferedReader;\r
+import java.io.FileNotFoundException;\r
+import java.io.FileReader;\r
+import java.io.IOException;\r
+import java.util.Vector;\r
+\r
+public class ToolChainConfigVector {\r
+\r
+    private Vector<ToolChainConfigId> vToolChainConfigs = new Vector<ToolChainConfigId>();\r
+\r
+    public int findToolChainConfigs(ToolChainConfigId sfi) {\r
+        for (int index = 0; index < vToolChainConfigs.size(); index++) {\r
+            if (vToolChainConfigs.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findToolChainConfigs(String name) {\r
+        for (int index = 0; index < vToolChainConfigs.size(); index++) {\r
+            if (vToolChainConfigs.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public ToolChainConfigId getToolChainConfigs(int index) {\r
+        if (index > -1) {\r
+            return vToolChainConfigs.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+    \r
+    public Vector<String> toStringVector(int index) {\r
+        Vector<String> v = new Vector<String>();\r
+        v.addElement(getToolChainConfigs(index).getName());\r
+        v.addElement(getToolChainConfigs(index).getValue());\r
+        return v;\r
+    }\r
+\r
+    public void addToolChainConfigs(ToolChainConfigId arg0) {\r
+        vToolChainConfigs.addElement(arg0);\r
+    }\r
+\r
+    public void updateToolChainConfigs(ToolChainConfigId arg0, int arg1) {\r
+        vToolChainConfigs.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeToolChainConfigs(ToolChainConfigId arg0) {\r
+        int index = findToolChainConfigs(arg0);\r
+        if (index > -1) {\r
+            vToolChainConfigs.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeToolChainConfigs(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vToolChainConfigs.removeElementAt(index);\r
+        }\r
+    }\r
+    \r
+    public void removeAll() {\r
+        vToolChainConfigs = new Vector<ToolChainConfigId>();\r
+    }\r
+\r
+    public Vector<String> getToolChainConfigsName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vToolChainConfigs.size(); index++) {\r
+            v.addElement(vToolChainConfigs.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+    \r
+    public Vector<String> getToolChainConfigsValue() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vToolChainConfigs.size(); index++) {\r
+            v.addElement(vToolChainConfigs.get(index).getValue());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vToolChainConfigs.size();\r
+    }\r
+\r
+    /**\r
+    \r
+     @param file\r
+     @throws IOException\r
+     @throws FileNotFoundException\r
+    \r
+    **/\r
+    public void parseFile(String file) throws IOException {\r
+        FileReader fr = new FileReader(file);\r
+        BufferedReader br = new BufferedReader(fr);\r
+        String line = br.readLine();\r
+        while (line != null) {\r
+            parseLine(line);\r
+            line = br.readLine();\r
+        }\r
+    }\r
+    \r
+    /**\r
+     Parse the input string and add name, value to vector \r
+     \r
+     @param line\r
+    \r
+    **/\r
+    private void parseLine(String line) {\r
+        String name = "";\r
+        String value = "";\r
+        if (line.indexOf(ToolChainConfigId.COMMENTS) != 0 && line.indexOf(ToolChainConfigId.EQUALS) > -1) {\r
+            name = line.substring(0, line.indexOf(ToolChainConfigId.EQUALS)).trim();\r
+            value = line.substring(line.indexOf(ToolChainConfigId.EQUALS) + 1).trim();\r
+            this.addToolChainConfigs(new ToolChainConfigId(name, value));\r
+        }\r
+    }\r
+}\r
index e63a0f5cf96c006f0eac72d10788681e4fade1cc..3623b2e3c006c1870b800f90a4924b931ea4bbe4 100644 (file)
@@ -141,36 +141,35 @@ public class Tools {
             }\r
         }\r
     }\r
-    \r
+\r
     /**\r
      Get path only from a path\r
-    \r
+     \r
      @param filePath\r
      @return\r
-    \r
-    **/\r
+     \r
+     **/\r
     public static String getFilePathOnly(String filePath) {\r
         String path = filePath.substring(0, filePath.length() - getFileNameOnly(filePath).length());\r
         if (path.endsWith(DataType.FILE_SEPARATOR)) {\r
             path = path.substring(0, path.length() - DataType.FILE_SEPARATOR.length());\r
         }\r
-        \r
+\r
         return path;\r
     }\r
-    \r
-    \r
+\r
     /**\r
      Get file name from a path\r
      \r
      @param filePath\r
      @return\r
-    \r
-    **/\r
+     \r
+     **/\r
     public static String getFileNameOnly(String filePath) {\r
         File f = new File(filePath);\r
         return f.getAbsoluteFile().getName();\r
     }\r
-    \r
+\r
     public static String getFileNameWithoutExt(String filePath) {\r
         filePath = getFileNameOnly(filePath);\r
         filePath = filePath.substring(0, filePath.lastIndexOf(DataType.FILE_EXT_SEPARATOR));\r
@@ -265,14 +264,28 @@ public class Tools {
         }\r
         return path;\r
     }\r
-    \r
+\r
     /**\r
      Show a message box\r
      \r
      @param arg0\r
-    \r
-    **/\r
+     \r
+     **/\r
     public static void showInformationMessage(String arg0) {\r
         JOptionPane.showConfirmDialog(null, arg0, "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE);\r
     }\r
+    \r
+    /**\r
+    if the string doesn't end with a file separator, append it to the string\r
+    \r
+    @param arg0\r
+    @return\r
+   \r
+   **/\r
+   public static String addFileSeparator(String arg0) {\r
+       if (!arg0.endsWith(DataType.FILE_SEPARATOR)) {\r
+           arg0 = arg0 + DataType.FILE_SEPARATOR;\r
+       }\r
+       return arg0;\r
+   }\r
 }\r
index 6814741a5c4a309fe77d996368f5d55fc3ab3a53..454f472a23e3cfa9e594089c0475443fac2c47eb 100644 (file)
@@ -18,7 +18,7 @@ package org.tianocore.frameworkwizard.common.ui;
 \r
 import javax.swing.tree.DefaultMutableTreeNode;\r
 \r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
 \r
 /**\r
  The class is used to override DefaultMutableTreeNode to provides customized interfaces\r
index 3d6a65bb83765a904745c1a8267781d053d690ce..25da85fa818f81466d808fc2fd394865191a7b95 100644 (file)
@@ -21,7 +21,7 @@ import javax.swing.tree.DefaultTreeModel;
 import javax.swing.tree.TreeNode;\r
 import javax.swing.tree.TreePath;\r
 \r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
 \r
 /**\r
  The class is used to override JTree to provides customized interfaces \r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/BootModes/BootModesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/BootModes/BootModesIdentification.java
deleted file mode 100644 (file)
index 45944d5..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.BootModes;\r
-\r
-import java.util.Vector;\r
-\r
-public class BootModesIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public BootModesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.usage = (arg1 == null ? "" : arg1);\r
-        this.featureFlag = (arg2 == null ? "" : arg2);\r
-        this.supArchList = arg3;\r
-        this.help = (arg4 == null ? "" : arg4);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(BootModesIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/BootModes/BootModesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/BootModes/BootModesVector.java
deleted file mode 100644 (file)
index c7c02e9..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.BootModes;\r
-\r
-import java.util.Vector;\r
-\r
-public class BootModesVector {\r
-\r
-    private Vector<BootModesIdentification> vBootModes = new Vector<BootModesIdentification>();\r
-\r
-    public int findBootModes(BootModesIdentification sfi) {\r
-        for (int index = 0; index < vBootModes.size(); index++) {\r
-            if (vBootModes.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findBootModes(String name) {\r
-        for (int index = 0; index < vBootModes.size(); index++) {\r
-            if (vBootModes.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public BootModesIdentification getBootModes(int index) {\r
-        if (index > -1) {\r
-            return vBootModes.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addBootModes(BootModesIdentification arg0) {\r
-        vBootModes.addElement(arg0);\r
-    }\r
-\r
-    public void updateBootModes(BootModesIdentification arg0, int arg1) {\r
-        vBootModes.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeBootModes(BootModesIdentification arg0) {\r
-        int index = findBootModes(arg0);\r
-        if (index > -1) {\r
-            vBootModes.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeBootModes(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vBootModes.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<BootModesIdentification> getvBootModes() {\r
-        return vBootModes;\r
-    }\r
-\r
-    public void setvBootModes(Vector<BootModesIdentification> BootModes) {\r
-        vBootModes = BootModes;\r
-    }\r
-\r
-    public Vector<String> getBootModesName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vBootModes.size(); index++) {\r
-            v.addElement(vBootModes.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vBootModes.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/DataHubs/DataHubsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/DataHubs/DataHubsIdentification.java
deleted file mode 100644 (file)
index deb72d3..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.DataHubs;\r
-\r
-import java.util.Vector;\r
-\r
-public class DataHubsIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public DataHubsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.usage = (arg1 == null ? "" : arg1);\r
-        this.featureFlag = (arg2 == null ? "" : arg2);\r
-        this.supArchList = arg3;\r
-        this.help = (arg4 == null ? "" : arg4);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(DataHubsIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/DataHubs/DataHubsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/DataHubs/DataHubsVector.java
deleted file mode 100644 (file)
index 4348eb3..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.DataHubs;\r
-\r
-import java.util.Vector;\r
-\r
-public class DataHubsVector {\r
-\r
-    private Vector<DataHubsIdentification> vDataHubs = new Vector<DataHubsIdentification>();\r
-\r
-    public int findDataHubs(DataHubsIdentification sfi) {\r
-        for (int index = 0; index < vDataHubs.size(); index++) {\r
-            if (vDataHubs.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findDataHubs(String name) {\r
-        for (int index = 0; index < vDataHubs.size(); index++) {\r
-            if (vDataHubs.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public DataHubsIdentification getDataHubs(int index) {\r
-        if (index > -1) {\r
-            return vDataHubs.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addDataHubs(DataHubsIdentification arg0) {\r
-        vDataHubs.addElement(arg0);\r
-    }\r
-\r
-    public void updateDataHubs(DataHubsIdentification arg0, int arg1) {\r
-        vDataHubs.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeDataHubs(DataHubsIdentification arg0) {\r
-        int index = findDataHubs(arg0);\r
-        if (index > -1) {\r
-            vDataHubs.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeDataHubs(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vDataHubs.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<DataHubsIdentification> getvDataHubs() {\r
-        return vDataHubs;\r
-    }\r
-\r
-    public void setvDataHubs(Vector<DataHubsIdentification> DataHubs) {\r
-        vDataHubs = DataHubs;\r
-    }\r
-\r
-    public Vector<String> getDataHubsName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vDataHubs.size(); index++) {\r
-            v.addElement(vDataHubs.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vDataHubs.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Events/EventsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Events/EventsIdentification.java
deleted file mode 100644 (file)
index 4258226..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.Events;\r
-\r
-import java.util.Vector;\r
-\r
-public class EventsIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String type = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public EventsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.type = (arg1 == null ? "" : arg1);\r
-        this.usage = (arg2 == null ? "" : arg2);\r
-        this.featureFlag = (arg3 == null ? "" : arg3);\r
-        this.supArchList = arg4;\r
-        this.help = (arg5 == null ? "" : arg5);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(EventsIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getType() {\r
-        return type;\r
-    }\r
-\r
-    public void setType(String type) {\r
-        this.type = type;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Events/EventsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Events/EventsVector.java
deleted file mode 100644 (file)
index a2f597a..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.Events;\r
-\r
-import java.util.Vector;\r
-\r
-public class EventsVector {\r
-\r
-    private Vector<EventsIdentification> vEvents = new Vector<EventsIdentification>();\r
-\r
-    public int findEvents(EventsIdentification sfi) {\r
-        for (int index = 0; index < vEvents.size(); index++) {\r
-            if (vEvents.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findEvents(String name) {\r
-        for (int index = 0; index < vEvents.size(); index++) {\r
-            if (vEvents.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public EventsIdentification getEvents(int index) {\r
-        if (index > -1) {\r
-            return vEvents.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addEvents(EventsIdentification arg0) {\r
-        vEvents.addElement(arg0);\r
-    }\r
-\r
-    public void updateEvents(EventsIdentification arg0, int arg1) {\r
-        vEvents.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeEvents(EventsIdentification arg0) {\r
-        int index = findEvents(arg0);\r
-        if (index > -1) {\r
-            vEvents.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeEvents(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vEvents.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<EventsIdentification> getvEvents() {\r
-        return vEvents;\r
-    }\r
-\r
-    public void setvEvents(Vector<EventsIdentification> Events) {\r
-        vEvents = Events;\r
-    }\r
-\r
-    public Vector<String> getEventsName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vEvents.size(); index++) {\r
-            v.addElement(vEvents.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vEvents.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Externs/ExternsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Externs/ExternsIdentification.java
deleted file mode 100644 (file)
index b925698..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.Externs;\r
-\r
-import java.util.Vector;\r
-\r
-public class ExternsIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String type = null;\r
-    \r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-\r
-    public ExternsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.type = (arg1 == null ? "" : arg1);\r
-        this.featureFlag = (arg2 == null ? "" : arg2);\r
-        this.supArchList = arg3;\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(ExternsIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getType() {\r
-        return type;\r
-    }\r
-\r
-    public void setType(String type) {\r
-        this.type = type;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Externs/ExternsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Externs/ExternsVector.java
deleted file mode 100644 (file)
index ac5ce34..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.Externs;\r
-\r
-import java.util.Vector;\r
-\r
-public class ExternsVector {\r
-\r
-    private Vector<ExternsIdentification> vExterns = new Vector<ExternsIdentification>();\r
-\r
-    public int findExterns(ExternsIdentification sfi) {\r
-        for (int index = 0; index < vExterns.size(); index++) {\r
-            if (vExterns.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findExterns(String name) {\r
-        for (int index = 0; index < vExterns.size(); index++) {\r
-            if (vExterns.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public ExternsIdentification getExterns(int index) {\r
-        if (index > -1) {\r
-            return vExterns.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addExterns(ExternsIdentification arg0) {\r
-        vExterns.addElement(arg0);\r
-    }\r
-\r
-    public void updateExterns(ExternsIdentification arg0, int arg1) {\r
-        vExterns.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeExterns(ExternsIdentification arg0) {\r
-        int index = findExterns(arg0);\r
-        if (index > -1) {\r
-            vExterns.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeExterns(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vExterns.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<ExternsIdentification> getvExterns() {\r
-        return vExterns;\r
-    }\r
-\r
-    public void setvExterns(Vector<ExternsIdentification> Externs) {\r
-        vExterns = Externs;\r
-    }\r
-\r
-    public Vector<String> getExternsName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vExterns.size(); index++) {\r
-            v.addElement(vExterns.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vExterns.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Guids/GuidsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Guids/GuidsIdentification.java
deleted file mode 100644 (file)
index 7b11e2c..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.Guids;\r
-\r
-import java.util.Vector;\r
-\r
-public class GuidsIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public GuidsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.usage = (arg1 == null ? "" : arg1);\r
-        this.featureFlag = (arg2 == null ? "" : arg2);\r
-        this.supArchList = arg3;\r
-        this.help = (arg4 == null ? "" : arg4);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(GuidsIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Guids/GuidsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Guids/GuidsVector.java
deleted file mode 100644 (file)
index 68c2d88..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.Guids;\r
-\r
-import java.util.Vector;\r
-\r
-public class GuidsVector {\r
-\r
-    private Vector<GuidsIdentification> vGuids = new Vector<GuidsIdentification>();\r
-\r
-    public int findGuids(GuidsIdentification sfi) {\r
-        for (int index = 0; index < vGuids.size(); index++) {\r
-            if (vGuids.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findGuids(String name) {\r
-        for (int index = 0; index < vGuids.size(); index++) {\r
-            if (vGuids.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public GuidsIdentification getGuids(int index) {\r
-        if (index > -1) {\r
-            return vGuids.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addGuids(GuidsIdentification arg0) {\r
-        vGuids.addElement(arg0);\r
-    }\r
-\r
-    public void updateGuids(GuidsIdentification arg0, int arg1) {\r
-        vGuids.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeGuids(GuidsIdentification arg0) {\r
-        int index = findGuids(arg0);\r
-        if (index > -1) {\r
-            vGuids.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeGuids(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vGuids.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<GuidsIdentification> getvGuids() {\r
-        return vGuids;\r
-    }\r
-\r
-    public void setvGuids(Vector<GuidsIdentification> Guids) {\r
-        vGuids = Guids;\r
-    }\r
-\r
-    public Vector<String> getGuidsName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vGuids.size(); index++) {\r
-            v.addElement(vGuids.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vGuids.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/HiiPackages/HiiPackagesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/HiiPackages/HiiPackagesIdentification.java
deleted file mode 100644 (file)
index 546f4b8..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.HiiPackages;\r
-\r
-import java.util.Vector;\r
-\r
-public class HiiPackagesIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public HiiPackagesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.usage = (arg1 == null ? "" : arg1);\r
-        this.featureFlag = (arg2 == null ? "" : arg2);\r
-        this.supArchList = arg3;\r
-        this.help = (arg4 == null ? "" : arg4);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(HiiPackagesIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/HiiPackages/HiiPackagesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/HiiPackages/HiiPackagesVector.java
deleted file mode 100644 (file)
index c4a4bbb..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.HiiPackages;\r
-\r
-import java.util.Vector;\r
-\r
-public class HiiPackagesVector {\r
-\r
-    private Vector<HiiPackagesIdentification> vHiiPackages = new Vector<HiiPackagesIdentification>();\r
-\r
-    public int findHiiPackages(HiiPackagesIdentification sfi) {\r
-        for (int index = 0; index < vHiiPackages.size(); index++) {\r
-            if (vHiiPackages.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findHiiPackages(String name) {\r
-        for (int index = 0; index < vHiiPackages.size(); index++) {\r
-            if (vHiiPackages.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public HiiPackagesIdentification getHiiPackages(int index) {\r
-        if (index > -1) {\r
-            return vHiiPackages.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addHiiPackages(HiiPackagesIdentification arg0) {\r
-        vHiiPackages.addElement(arg0);\r
-    }\r
-\r
-    public void updateHiiPackages(HiiPackagesIdentification arg0, int arg1) {\r
-        vHiiPackages.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeHiiPackages(HiiPackagesIdentification arg0) {\r
-        int index = findHiiPackages(arg0);\r
-        if (index > -1) {\r
-            vHiiPackages.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeHiiPackages(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vHiiPackages.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<HiiPackagesIdentification> getvHiiPackages() {\r
-        return vHiiPackages;\r
-    }\r
-\r
-    public void setvHiiPackages(Vector<HiiPackagesIdentification> HiiPackages) {\r
-        vHiiPackages = HiiPackages;\r
-    }\r
-\r
-    public Vector<String> getHiiPackagesName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vHiiPackages.size(); index++) {\r
-            v.addElement(vHiiPackages.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vHiiPackages.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Hobs/HobsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Hobs/HobsIdentification.java
deleted file mode 100644 (file)
index f577724..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.Hobs;\r
-\r
-import java.util.Vector;\r
-\r
-public class HobsIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String type = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public HobsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.type = (arg1 == null ? "" : arg1);\r
-        this.usage = (arg2 == null ? "" : arg2);\r
-        this.featureFlag = (arg3 == null ? "" : arg3);\r
-        this.supArchList = arg4;\r
-        this.help = (arg5 == null ? "" : arg5);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(HobsIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getType() {\r
-        return type;\r
-    }\r
-\r
-    public void setType(String type) {\r
-        this.type = type;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Hobs/HobsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Hobs/HobsVector.java
deleted file mode 100644 (file)
index 5e37245..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.Hobs;\r
-\r
-import java.util.Vector;\r
-\r
-public class HobsVector {\r
-\r
-    private Vector<HobsIdentification> vHobs = new Vector<HobsIdentification>();\r
-\r
-    public int findHobs(HobsIdentification sfi) {\r
-        for (int index = 0; index < vHobs.size(); index++) {\r
-            if (vHobs.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findHobs(String name) {\r
-        for (int index = 0; index < vHobs.size(); index++) {\r
-            if (vHobs.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public HobsIdentification getHobs(int index) {\r
-        if (index > -1) {\r
-            return vHobs.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addHobs(HobsIdentification arg0) {\r
-        vHobs.addElement(arg0);\r
-    }\r
-\r
-    public void updateHobs(HobsIdentification arg0, int arg1) {\r
-        vHobs.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeHobs(HobsIdentification arg0) {\r
-        int index = findHobs(arg0);\r
-        if (index > -1) {\r
-            vHobs.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeHobs(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vHobs.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<HobsIdentification> getvHobs() {\r
-        return vHobs;\r
-    }\r
-\r
-    public void setvHobs(Vector<HobsIdentification> Hobs) {\r
-        vHobs = Hobs;\r
-    }\r
-\r
-    public Vector<String> getHobsName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vHobs.size(); index++) {\r
-            v.addElement(vHobs.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vHobs.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/LibraryClass/LibraryClassIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/LibraryClass/LibraryClassIdentification.java
deleted file mode 100644 (file)
index 7f88a97..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-/** @file\r
-\r
- The file is used to define Library Class Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.LibraryClass;\r
-\r
-import java.util.Vector;\r
-\r
-public class LibraryClassIdentification {\r
-    private String libraryClassName = null;\r
-\r
-    private String usage = null;\r
-\r
-    private String recommendedInstanceVersion = null;\r
-\r
-    private String recommendedInstanceGuid = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private Vector<String> supModuleList = null;\r
-    \r
-    private String help = null;\r
-\r
-    public LibraryClassIdentification() {\r
-\r
-    }\r
-\r
-    public LibraryClassIdentification(String strName, String strUsage, String strRecommendedInstanceVersion,\r
-                                      String strRecommendedInstanceGuid, Vector<String> vSupArchList,\r
-                                      String strFeatureFlag, Vector<String> vSupModuleList, String strHelp) {\r
-        this.libraryClassName = (strName == null ? "" : strName);\r
-        this.usage = (strUsage == null ? "" : strUsage);\r
-        this.recommendedInstanceVersion = (strRecommendedInstanceVersion == null ? "" : strRecommendedInstanceVersion);\r
-        this.recommendedInstanceGuid = (strRecommendedInstanceGuid == null ? "" : strRecommendedInstanceGuid);\r
-        this.supArchList = vSupArchList;\r
-        this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
-        this.supModuleList = vSupModuleList;\r
-        this.help = (strHelp == null ? "" : strHelp);\r
-    }\r
-\r
-    public String getLibraryClassName() {\r
-        return libraryClassName;\r
-    }\r
-\r
-    public void setLibraryClassName(String libraryClassName) {\r
-        this.libraryClassName = libraryClassName;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getRecommendedInstanceGuid() {\r
-        return recommendedInstanceGuid;\r
-    }\r
-\r
-    public void setRecommendedInstanceGuid(String recommendedInstanceGuid) {\r
-        this.recommendedInstanceGuid = recommendedInstanceGuid;\r
-    }\r
-\r
-    public String getRecommendedInstanceVersion() {\r
-        return recommendedInstanceVersion;\r
-    }\r
-\r
-    public void setRecommendedInstanceVersion(String recommendedInstanceVersion) {\r
-        this.recommendedInstanceVersion = recommendedInstanceVersion;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(LibraryClassIdentification lib) {\r
-        if (this.libraryClassName.equals(lib.libraryClassName) && this.usage.equals(lib.getUsage())) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public Vector<String> getSupModuleList() {\r
-        return supModuleList;\r
-    }\r
-\r
-    public void setSupModuleList(Vector<String> supModuleList) {\r
-        this.supModuleList = supModuleList;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/LibraryClass/LibraryClassVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/LibraryClass/LibraryClassVector.java
deleted file mode 100644 (file)
index ddacdda..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
\r
- The file is used to define Library Class Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.LibraryClass;\r
-\r
-import java.util.Vector;\r
-\r
-\r
-public class LibraryClassVector {\r
-    private Vector<LibraryClassIdentification> vLibraryClass = new Vector<LibraryClassIdentification>();\r
-    \r
-    public int findLibraryClass(LibraryClassIdentification lib) {\r
-        for (int index = 0; index < vLibraryClass.size(); index++) {\r
-            if (vLibraryClass.elementAt(index).equals(lib)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-    \r
-    public int findLibraryClass(String name) {\r
-        for (int index = 0; index < vLibraryClass.size(); index++) {\r
-            if (vLibraryClass.elementAt(index).getLibraryClassName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-    \r
-    public LibraryClassIdentification getLibraryClass(int index) {\r
-        if (index > -1) {\r
-            return vLibraryClass.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-    \r
-    public void addLibraryClass(LibraryClassIdentification lib) {\r
-        vLibraryClass.addElement(lib);\r
-    }\r
-    \r
-    public void updateLibraryClass(LibraryClassIdentification lib, int index) {\r
-        vLibraryClass.setElementAt(lib, index);\r
-    }\r
-    \r
-    public void removeLibraryClass(LibraryClassIdentification lib) {\r
-        int index = findLibraryClass(lib);\r
-        if (index > -1) {\r
-            vLibraryClass.removeElementAt(index);\r
-        }\r
-    }\r
-    \r
-    public void removeLibraryClass(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vLibraryClass.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<LibraryClassIdentification> getVLibraryClass() {\r
-        return vLibraryClass;\r
-    }\r
-\r
-    public void setVLibraryClass(Vector<LibraryClassIdentification> libraryClass) {\r
-        vLibraryClass = libraryClass;\r
-    }\r
-    \r
-    public Vector<String> getLibraryClassName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vLibraryClass.size(); index++) {\r
-            v.addElement(vLibraryClass.get(index).getLibraryClassName());\r
-        }\r
-        return v;\r
-    }\r
-    \r
-    public int size() {\r
-        return this.vLibraryClass.size();\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/ModuleIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/ModuleIdentification.java
deleted file mode 100644 (file)
index 95ada64..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/** @file\r
\r
- The file is used to save basic information of module\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification;\r
-\r
-\r
-import org.tianocore.frameworkwizard.common.Identification;\r
-import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
-\r
-public class ModuleIdentification extends Identification {\r
-    \r
-    private PackageIdentification packageId;\r
-    \r
-    public ModuleIdentification(String name, String guid, String version, String path) {\r
-       super(name, guid, version, path);\r
-    }\r
-    \r
-    public ModuleIdentification(Identification id) {\r
-        super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
-    }\r
-    \r
-    public ModuleIdentification(String name, String guid, String version, String path, PackageIdentification packageId){\r
-        super(name, guid, version, path);\r
-        this.packageId = packageId;\r
-    }\r
-    \r
-    public ModuleIdentification(Identification id, PackageIdentification packageId) {\r
-        super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
-        this.packageId = packageId;\r
-    }\r
-    \r
-//    public boolean equals(Object obj) {\r
-//        if (obj instanceof Identification) {\r
-//            Identification id = (Identification)obj;\r
-//            if ( this.getName().equalsIgnoreCase(id.getName())) {\r
-//                return true;\r
-//            }\r
-//            // and package is the same one\r
-//            return false;\r
-//        }\r
-//        else {\r
-//            return super.equals(obj);\r
-//        }\r
-//    }\r
-    \r
-    public String toString(){\r
-        return "Module " + this.getName() + "[" + this.getGuid() + "] in package " + packageId;\r
-    }\r
-\r
-    public PackageIdentification getPackageId() {\r
-        return packageId;\r
-    }\r
-\r
-    public void setPackageId(PackageIdentification packageId) {\r
-        this.packageId = packageId;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PackageDependencies/PackageDependenciesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PackageDependencies/PackageDependenciesIdentification.java
deleted file mode 100644 (file)
index 98a0245..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.PackageDependencies;\r
-\r
-import java.util.Vector;\r
-\r
-public class PackageDependenciesIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String version = null;\r
-\r
-    private String guid = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-\r
-    public PackageDependenciesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.version = (arg1 == null ? "" : arg1);\r
-        this.guid = (arg2 == null ? "" : arg2);\r
-        this.featureFlag = (arg3 == null ? "" : arg3);\r
-        this.supArchList = arg4;\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getGuid() {\r
-        return guid;\r
-    }\r
-\r
-    public void setGuid(String guid) {\r
-        this.guid = guid;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-\r
-    public String getVersion() {\r
-        return version;\r
-    }\r
-\r
-    public void setVersion(String version) {\r
-        this.version = version;\r
-    }\r
-    \r
-    public boolean equals(PackageDependenciesIdentification pdi) {\r
-        if (this.guid.equals(pdi.guid)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PackageDependencies/PackageDependenciesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PackageDependencies/PackageDependenciesVector.java
deleted file mode 100644 (file)
index 7c09710..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.PackageDependencies;\r
-\r
-import java.util.Vector;\r
-\r
-public class PackageDependenciesVector {\r
-\r
-    private Vector<PackageDependenciesIdentification> vPackageDependencies = new Vector<PackageDependenciesIdentification>();\r
-\r
-    public int findPackageDependencies(PackageDependenciesIdentification sfi) {\r
-        for (int index = 0; index < vPackageDependencies.size(); index++) {\r
-            if (vPackageDependencies.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findPackageDependencies(String name) {\r
-        for (int index = 0; index < vPackageDependencies.size(); index++) {\r
-            if (vPackageDependencies.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public PackageDependenciesIdentification getPackageDependencies(int index) {\r
-        if (index > -1) {\r
-            return vPackageDependencies.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addPackageDependencies(PackageDependenciesIdentification arg0) {\r
-        vPackageDependencies.addElement(arg0);\r
-    }\r
-\r
-    public void updatePackageDependencies(PackageDependenciesIdentification arg0, int arg1) {\r
-        vPackageDependencies.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removePackageDependencies(PackageDependenciesIdentification arg0) {\r
-        int index = findPackageDependencies(arg0);\r
-        if (index > -1) {\r
-            vPackageDependencies.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removePackageDependencies(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vPackageDependencies.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<PackageDependenciesIdentification> getvPackageDependencies() {\r
-        return vPackageDependencies;\r
-    }\r
-\r
-    public void setvPackageDependencies(Vector<PackageDependenciesIdentification> PackageDependencies) {\r
-        vPackageDependencies = PackageDependencies;\r
-    }\r
-\r
-    public Vector<String> getPackageDependenciesName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vPackageDependencies.size(); index++) {\r
-            v.addElement(vPackageDependencies.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vPackageDependencies.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PcdCoded/PcdCodedIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PcdCoded/PcdCodedIdentification.java
deleted file mode 100644 (file)
index f605add..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.PcdCoded;\r
-\r
-import java.util.Vector;\r
-\r
-public class PcdCodedIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String guid = null;\r
-    \r
-    private String featureFlag = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String value = null;\r
-    \r
-    private String help = null;\r
-    \r
-    private String type = null;\r
-\r
-    public PcdCodedIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4, String arg5, String arg6) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.guid = (arg1 == null ? "" : arg1);\r
-        this.featureFlag = (arg2 == null ? "" : arg2);\r
-        this.supArchList = arg3;\r
-        this.value = (arg4 == null ? "" : arg4);\r
-        this.help = (arg5 == null ? "" : arg5);\r
-        this.type = (arg6 == null ? "" : arg6);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(PcdCodedIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getGuid() {\r
-        return guid;\r
-    }\r
-\r
-    public void setGuid(String guid) {\r
-        this.guid = guid;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-\r
-    public String getType() {\r
-        return type;\r
-    }\r
-\r
-    public void setType(String type) {\r
-        this.type = type;\r
-    }\r
-\r
-    public String getValue() {\r
-        return value;\r
-    }\r
-\r
-    public void setValue(String value) {\r
-        this.value = value;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PcdCoded/PcdCodedVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PcdCoded/PcdCodedVector.java
deleted file mode 100644 (file)
index db2a8dc..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.PcdCoded;\r
-\r
-import java.util.Vector;\r
-\r
-public class PcdCodedVector {\r
-\r
-    private Vector<PcdCodedIdentification> vPcdCoded = new Vector<PcdCodedIdentification>();\r
-\r
-    public int findPcdCoded(PcdCodedIdentification sfi) {\r
-        for (int index = 0; index < vPcdCoded.size(); index++) {\r
-            if (vPcdCoded.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findPcdCoded(String name) {\r
-        for (int index = 0; index < vPcdCoded.size(); index++) {\r
-            if (vPcdCoded.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public PcdCodedIdentification getPcdCoded(int index) {\r
-        if (index > -1) {\r
-            return vPcdCoded.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addPcdCoded(PcdCodedIdentification arg0) {\r
-        vPcdCoded.addElement(arg0);\r
-    }\r
-\r
-    public void updatePcdCoded(PcdCodedIdentification arg0, int arg1) {\r
-        vPcdCoded.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removePcdCoded(PcdCodedIdentification arg0) {\r
-        int index = findPcdCoded(arg0);\r
-        if (index > -1) {\r
-            vPcdCoded.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removePcdCoded(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vPcdCoded.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<PcdCodedIdentification> getvPcdCoded() {\r
-        return vPcdCoded;\r
-    }\r
-\r
-    public void setvPcdCoded(Vector<PcdCodedIdentification> PcdCoded) {\r
-        vPcdCoded = PcdCoded;\r
-    }\r
-\r
-    public Vector<String> getPcdCodedName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vPcdCoded.size(); index++) {\r
-            v.addElement(vPcdCoded.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vPcdCoded.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Ppis/PpisIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Ppis/PpisIdentification.java
deleted file mode 100644 (file)
index 3df5c08..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.Ppis;\r
-\r
-import java.util.Vector;\r
-\r
-public class PpisIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String type = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public PpisIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.type = (arg1 == null ? "" : arg1);\r
-        this.usage = (arg2 == null ? "" : arg2);\r
-        this.featureFlag = (arg3 == null ? "" : arg3);\r
-        this.supArchList = arg4;\r
-        this.help = (arg5 == null ? "" : arg5);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(PpisIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getType() {\r
-        return type;\r
-    }\r
-\r
-    public void setType(String type) {\r
-        this.type = type;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Ppis/PpisVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Ppis/PpisVector.java
deleted file mode 100644 (file)
index 8514918..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.Ppis;\r
-\r
-import java.util.Vector;\r
-\r
-public class PpisVector {\r
-\r
-    private Vector<PpisIdentification> vPpis = new Vector<PpisIdentification>();\r
-\r
-    public int findPpis(PpisIdentification sfi) {\r
-        for (int index = 0; index < vPpis.size(); index++) {\r
-            if (vPpis.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findPpis(String name) {\r
-        for (int index = 0; index < vPpis.size(); index++) {\r
-            if (vPpis.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public PpisIdentification getPpis(int index) {\r
-        if (index > -1) {\r
-            return vPpis.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addPpis(PpisIdentification arg0) {\r
-        vPpis.addElement(arg0);\r
-    }\r
-\r
-    public void updatePpis(PpisIdentification arg0, int arg1) {\r
-        vPpis.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removePpis(PpisIdentification arg0) {\r
-        int index = findPpis(arg0);\r
-        if (index > -1) {\r
-            vPpis.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removePpis(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vPpis.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<PpisIdentification> getvPpis() {\r
-        return vPpis;\r
-    }\r
-\r
-    public void setvPpis(Vector<PpisIdentification> Ppis) {\r
-        vPpis = Ppis;\r
-    }\r
-\r
-    public Vector<String> getPpisName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vPpis.size(); index++) {\r
-            v.addElement(vPpis.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vPpis.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Protocols/ProtocolsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Protocols/ProtocolsIdentification.java
deleted file mode 100644 (file)
index 79567e4..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.Protocols;\r
-\r
-import java.util.Vector;\r
-\r
-public class ProtocolsIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String type = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public ProtocolsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.type = (arg1 == null ? "" : arg1);\r
-        this.usage = (arg2 == null ? "" : arg2);\r
-        this.featureFlag = (arg3 == null ? "" : arg3);\r
-        this.supArchList = arg4;\r
-        this.help = (arg5 == null ? "" : arg5);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(ProtocolsIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getType() {\r
-        return type;\r
-    }\r
-\r
-    public void setType(String type) {\r
-        this.type = type;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Protocols/ProtocolsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Protocols/ProtocolsVector.java
deleted file mode 100644 (file)
index e9e0106..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.Protocols;\r
-\r
-import java.util.Vector;\r
-\r
-public class ProtocolsVector {\r
-\r
-    private Vector<ProtocolsIdentification> vProtocols = new Vector<ProtocolsIdentification>();\r
-\r
-    public int findProtocols(ProtocolsIdentification sfi) {\r
-        for (int index = 0; index < vProtocols.size(); index++) {\r
-            if (vProtocols.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findProtocols(String name) {\r
-        for (int index = 0; index < vProtocols.size(); index++) {\r
-            if (vProtocols.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public ProtocolsIdentification getProtocols(int index) {\r
-        if (index > -1) {\r
-            return vProtocols.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addProtocols(ProtocolsIdentification arg0) {\r
-        vProtocols.addElement(arg0);\r
-    }\r
-\r
-    public void updateProtocols(ProtocolsIdentification arg0, int arg1) {\r
-        vProtocols.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeProtocols(ProtocolsIdentification arg0) {\r
-        int index = findProtocols(arg0);\r
-        if (index > -1) {\r
-            vProtocols.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeProtocols(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vProtocols.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<ProtocolsIdentification> getvProtocols() {\r
-        return vProtocols;\r
-    }\r
-\r
-    public void setvProtocols(Vector<ProtocolsIdentification> Protocols) {\r
-        vProtocols = Protocols;\r
-    }\r
-\r
-    public Vector<String> getProtocolsName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vProtocols.size(); index++) {\r
-            v.addElement(vProtocols.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vProtocols.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SourceFiles/SourceFilesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SourceFiles/SourceFilesIdentification.java
deleted file mode 100644 (file)
index 31e95d3..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/** @file\r
-\r
- The file is used to define Source Files Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.SourceFiles;\r
-\r
-import java.util.Vector;\r
-\r
-public class SourceFilesIdentification {\r
-\r
-    private String filename = null;\r
-\r
-    private String tagName = null;\r
-    \r
-    private String toolCode = null;\r
-    \r
-    private String toolChainFamily = null;\r
-    \r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-\r
-    public SourceFilesIdentification(String strFilename, String strTagName, String strToolCode, String strToolChainFamily,\r
-                                     String strFeatureFlag, Vector<String> arch) {\r
-        this.filename = (strFilename == null ? "" : strFilename);\r
-        this.tagName = (strTagName == null ? "" : strTagName);\r
-        this.toolCode = (strToolCode == null ? "" : strToolCode);\r
-        this.toolChainFamily = (strToolChainFamily == null ? "" : strToolChainFamily);\r
-        this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
-        this.supArchList = arch;\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getFilename() {\r
-        return filename;\r
-    }\r
-\r
-    public void setFilename(String filename) {\r
-        this.filename = filename;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-\r
-    public String getTagName() {\r
-        return tagName;\r
-    }\r
-\r
-    public void setTagName(String tagName) {\r
-        this.tagName = tagName;\r
-    }\r
-\r
-    public String getToolChainFamily() {\r
-        return toolChainFamily;\r
-    }\r
-\r
-    public void setToolChainFamily(String toolChainFamily) {\r
-        this.toolChainFamily = toolChainFamily;\r
-    }\r
-\r
-    public String getToolCode() {\r
-        return toolCode;\r
-    }\r
-\r
-    public void setToolCode(String toolCode) {\r
-        this.toolCode = toolCode;\r
-    }\r
-    \r
-    public boolean equals(SourceFilesIdentification sfid) {\r
-        if (this.filename.equals(sfid.filename)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SourceFiles/SourceFilesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SourceFiles/SourceFilesVector.java
deleted file mode 100644 (file)
index 0b96232..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
\r
- The file is used to define Source Files Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.SourceFiles;\r
-\r
-import java.util.Vector;\r
-\r
-public class SourceFilesVector {\r
-    private Vector<SourceFilesIdentification> vSourceFiles = new Vector<SourceFilesIdentification>();\r
-\r
-    public int findSourceFiles(SourceFilesIdentification sfi) {\r
-        for (int index = 0; index < vSourceFiles.size(); index++) {\r
-            if (vSourceFiles.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findSourceFiles(String name) {\r
-        for (int index = 0; index < vSourceFiles.size(); index++) {\r
-            if (vSourceFiles.elementAt(index).getFilename().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public SourceFilesIdentification getSourceFiles(int index) {\r
-        if (index > -1) {\r
-            return vSourceFiles.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addSourceFiles(SourceFilesIdentification sfi) {\r
-        vSourceFiles.addElement(sfi);\r
-    }\r
-\r
-    public void updateSourceFiles(SourceFilesIdentification sfi, int index) {\r
-        vSourceFiles.setElementAt(sfi, index);\r
-    }\r
-\r
-    public void removeSourceFiles(SourceFilesIdentification sfi) {\r
-        int index = findSourceFiles(sfi);\r
-        if (index > -1) {\r
-            vSourceFiles.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeSourceFiles(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vSourceFiles.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<SourceFilesIdentification> getvSourceFiles() {\r
-        return vSourceFiles;\r
-    }\r
-\r
-    public void setvSourceFiles(Vector<SourceFilesIdentification> SourceFiles) {\r
-        vSourceFiles = SourceFiles;\r
-    }\r
-    \r
-    public Vector<String> getSourceFilesName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vSourceFiles.size(); index++) {\r
-            v.addElement(vSourceFiles.get(index).getFilename());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vSourceFiles.size();\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SystemTables/SystemTablesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SystemTables/SystemTablesIdentification.java
deleted file mode 100644 (file)
index 354e10b..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.SystemTables;\r
-\r
-import java.util.Vector;\r
-\r
-public class SystemTablesIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public SystemTablesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.usage = (arg1 == null ? "" : arg1);\r
-        this.featureFlag = (arg2 == null ? "" : arg2);\r
-        this.supArchList = arg3;\r
-        this.help = (arg4 == null ? "" : arg4);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(SystemTablesIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SystemTables/SystemTablesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/SystemTables/SystemTablesVector.java
deleted file mode 100644 (file)
index eea0280..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.SystemTables;\r
-\r
-import java.util.Vector;\r
-\r
-public class SystemTablesVector {\r
-\r
-    private Vector<SystemTablesIdentification> vSystemTables = new Vector<SystemTablesIdentification>();\r
-\r
-    public int findSystemTables(SystemTablesIdentification sfi) {\r
-        for (int index = 0; index < vSystemTables.size(); index++) {\r
-            if (vSystemTables.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findSystemTables(String name) {\r
-        for (int index = 0; index < vSystemTables.size(); index++) {\r
-            if (vSystemTables.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public SystemTablesIdentification getSystemTables(int index) {\r
-        if (index > -1) {\r
-            return vSystemTables.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addSystemTables(SystemTablesIdentification arg0) {\r
-        vSystemTables.addElement(arg0);\r
-    }\r
-\r
-    public void updateSystemTables(SystemTablesIdentification arg0, int arg1) {\r
-        vSystemTables.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeSystemTables(SystemTablesIdentification arg0) {\r
-        int index = findSystemTables(arg0);\r
-        if (index > -1) {\r
-            vSystemTables.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeSystemTables(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vSystemTables.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<SystemTablesIdentification> getvSystemTables() {\r
-        return vSystemTables;\r
-    }\r
-\r
-    public void setvSystemTables(Vector<SystemTablesIdentification> SystemTables) {\r
-        vSystemTables = SystemTables;\r
-    }\r
-\r
-    public Vector<String> getSystemTablesName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vSystemTables.size(); index++) {\r
-            v.addElement(vSystemTables.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vSystemTables.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Variables/VariablesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Variables/VariablesIdentification.java
deleted file mode 100644 (file)
index bfa4c12..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
- **/\r
-\r
-package org.tianocore.frameworkwizard.module.Identification.Variables;\r
-\r
-import java.util.Vector;\r
-\r
-public class VariablesIdentification {\r
-\r
-    //\r
-    // Define class members\r
-    //\r
-    private String name = null;\r
-\r
-    private String guid = null;\r
-\r
-    private String usage = null;\r
-\r
-    private Vector<String> supArchList = null;\r
-\r
-    private String featureFlag = null;\r
-    \r
-    private String help = null;\r
-\r
-    public VariablesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
-        this.name = (arg0 == null ? "" : arg0);\r
-        this.guid = (arg1 == null ? "" : arg1);\r
-        this.usage = (arg2 == null ? "" : arg2);\r
-        this.featureFlag = (arg3 == null ? "" : arg3);\r
-        this.supArchList = arg4;\r
-        this.help = (arg5 == null ? "" : arg5);\r
-    }\r
-\r
-    public String getFeatureFlag() {\r
-        return featureFlag;\r
-    }\r
-\r
-    public void setFeatureFlag(String featureFlag) {\r
-        this.featureFlag = featureFlag;\r
-    }\r
-\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-    public void setName(String name) {\r
-        this.name = name;\r
-    }\r
-\r
-    public Vector<String> getSupArchList() {\r
-        return supArchList;\r
-    }\r
-\r
-    public void setSupArchList(Vector<String> supArchList) {\r
-        this.supArchList = supArchList;\r
-    }\r
-    \r
-    public boolean equals(VariablesIdentification pi) {\r
-        if (this.name.equals(pi.name)) {\r
-            return true;\r
-        }\r
-        return false;\r
-    }\r
-\r
-    public String getUsage() {\r
-        return usage;\r
-    }\r
-\r
-    public void setUsage(String usage) {\r
-        this.usage = usage;\r
-    }\r
-\r
-    public String getGuid() {\r
-        return guid;\r
-    }\r
-\r
-    public void setGuid(String guid) {\r
-        this.guid = guid;\r
-    }\r
-\r
-    public String getHelp() {\r
-        return help;\r
-    }\r
-\r
-    public void setHelp(String help) {\r
-        this.help = help;\r
-    }\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Variables/VariablesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/Variables/VariablesVector.java
deleted file mode 100644 (file)
index 543ebe6..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identification.Variables;\r
-\r
-import java.util.Vector;\r
-\r
-public class VariablesVector {\r
-\r
-    private Vector<VariablesIdentification> vVariables = new Vector<VariablesIdentification>();\r
-\r
-    public int findVariables(VariablesIdentification sfi) {\r
-        for (int index = 0; index < vVariables.size(); index++) {\r
-            if (vVariables.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findVariables(String name) {\r
-        for (int index = 0; index < vVariables.size(); index++) {\r
-            if (vVariables.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public VariablesIdentification getVariables(int index) {\r
-        if (index > -1) {\r
-            return vVariables.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addVariables(VariablesIdentification arg0) {\r
-        vVariables.addElement(arg0);\r
-    }\r
-\r
-    public void updateVariables(VariablesIdentification arg0, int arg1) {\r
-        vVariables.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeVariables(VariablesIdentification arg0) {\r
-        int index = findVariables(arg0);\r
-        if (index > -1) {\r
-            vVariables.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeVariables(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vVariables.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<VariablesIdentification> getvVariables() {\r
-        return vVariables;\r
-    }\r
-\r
-    public void setvVariables(Vector<VariablesIdentification> Variables) {\r
-        vVariables = Variables;\r
-    }\r
-\r
-    public Vector<String> getVariablesName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vVariables.size(); index++) {\r
-            v.addElement(vVariables.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vVariables.size();\r
-    }\r
-\r
-}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesIdentification.java
new file mode 100644 (file)
index 0000000..0005ad1
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.BootModes;\r
+\r
+import java.util.Vector;\r
+\r
+public class BootModesIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public BootModesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.usage = (arg1 == null ? "" : arg1);\r
+        this.featureFlag = (arg2 == null ? "" : arg2);\r
+        this.supArchList = arg3;\r
+        this.help = (arg4 == null ? "" : arg4);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(BootModesIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesVector.java
new file mode 100644 (file)
index 0000000..7125578
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.BootModes;\r
+\r
+import java.util.Vector;\r
+\r
+public class BootModesVector {\r
+\r
+    private Vector<BootModesIdentification> vBootModes = new Vector<BootModesIdentification>();\r
+\r
+    public int findBootModes(BootModesIdentification sfi) {\r
+        for (int index = 0; index < vBootModes.size(); index++) {\r
+            if (vBootModes.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findBootModes(String name) {\r
+        for (int index = 0; index < vBootModes.size(); index++) {\r
+            if (vBootModes.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public BootModesIdentification getBootModes(int index) {\r
+        if (index > -1) {\r
+            return vBootModes.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addBootModes(BootModesIdentification arg0) {\r
+        vBootModes.addElement(arg0);\r
+    }\r
+\r
+    public void updateBootModes(BootModesIdentification arg0, int arg1) {\r
+        vBootModes.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeBootModes(BootModesIdentification arg0) {\r
+        int index = findBootModes(arg0);\r
+        if (index > -1) {\r
+            vBootModes.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeBootModes(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vBootModes.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<BootModesIdentification> getvBootModes() {\r
+        return vBootModes;\r
+    }\r
+\r
+    public void setvBootModes(Vector<BootModesIdentification> BootModes) {\r
+        vBootModes = BootModes;\r
+    }\r
+\r
+    public Vector<String> getBootModesName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vBootModes.size(); index++) {\r
+            v.addElement(vBootModes.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vBootModes.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/DataHubs/DataHubsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/DataHubs/DataHubsIdentification.java
new file mode 100644 (file)
index 0000000..2b5b362
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.DataHubs;\r
+\r
+import java.util.Vector;\r
+\r
+public class DataHubsIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public DataHubsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.usage = (arg1 == null ? "" : arg1);\r
+        this.featureFlag = (arg2 == null ? "" : arg2);\r
+        this.supArchList = arg3;\r
+        this.help = (arg4 == null ? "" : arg4);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(DataHubsIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/DataHubs/DataHubsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/DataHubs/DataHubsVector.java
new file mode 100644 (file)
index 0000000..b7899bd
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.DataHubs;\r
+\r
+import java.util.Vector;\r
+\r
+public class DataHubsVector {\r
+\r
+    private Vector<DataHubsIdentification> vDataHubs = new Vector<DataHubsIdentification>();\r
+\r
+    public int findDataHubs(DataHubsIdentification sfi) {\r
+        for (int index = 0; index < vDataHubs.size(); index++) {\r
+            if (vDataHubs.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findDataHubs(String name) {\r
+        for (int index = 0; index < vDataHubs.size(); index++) {\r
+            if (vDataHubs.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public DataHubsIdentification getDataHubs(int index) {\r
+        if (index > -1) {\r
+            return vDataHubs.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addDataHubs(DataHubsIdentification arg0) {\r
+        vDataHubs.addElement(arg0);\r
+    }\r
+\r
+    public void updateDataHubs(DataHubsIdentification arg0, int arg1) {\r
+        vDataHubs.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeDataHubs(DataHubsIdentification arg0) {\r
+        int index = findDataHubs(arg0);\r
+        if (index > -1) {\r
+            vDataHubs.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeDataHubs(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vDataHubs.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<DataHubsIdentification> getvDataHubs() {\r
+        return vDataHubs;\r
+    }\r
+\r
+    public void setvDataHubs(Vector<DataHubsIdentification> DataHubs) {\r
+        vDataHubs = DataHubs;\r
+    }\r
+\r
+    public Vector<String> getDataHubsName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vDataHubs.size(); index++) {\r
+            v.addElement(vDataHubs.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vDataHubs.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Events/EventsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Events/EventsIdentification.java
new file mode 100644 (file)
index 0000000..5691232
--- /dev/null
@@ -0,0 +1,100 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.Events;\r
+\r
+import java.util.Vector;\r
+\r
+public class EventsIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String type = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public EventsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.type = (arg1 == null ? "" : arg1);\r
+        this.usage = (arg2 == null ? "" : arg2);\r
+        this.featureFlag = (arg3 == null ? "" : arg3);\r
+        this.supArchList = arg4;\r
+        this.help = (arg5 == null ? "" : arg5);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(EventsIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Events/EventsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Events/EventsVector.java
new file mode 100644 (file)
index 0000000..bafd98a
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.Events;\r
+\r
+import java.util.Vector;\r
+\r
+public class EventsVector {\r
+\r
+    private Vector<EventsIdentification> vEvents = new Vector<EventsIdentification>();\r
+\r
+    public int findEvents(EventsIdentification sfi) {\r
+        for (int index = 0; index < vEvents.size(); index++) {\r
+            if (vEvents.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findEvents(String name) {\r
+        for (int index = 0; index < vEvents.size(); index++) {\r
+            if (vEvents.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public EventsIdentification getEvents(int index) {\r
+        if (index > -1) {\r
+            return vEvents.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addEvents(EventsIdentification arg0) {\r
+        vEvents.addElement(arg0);\r
+    }\r
+\r
+    public void updateEvents(EventsIdentification arg0, int arg1) {\r
+        vEvents.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeEvents(EventsIdentification arg0) {\r
+        int index = findEvents(arg0);\r
+        if (index > -1) {\r
+            vEvents.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeEvents(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vEvents.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<EventsIdentification> getvEvents() {\r
+        return vEvents;\r
+    }\r
+\r
+    public void setvEvents(Vector<EventsIdentification> Events) {\r
+        vEvents = Events;\r
+    }\r
+\r
+    public Vector<String> getEventsName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vEvents.size(); index++) {\r
+            v.addElement(vEvents.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vEvents.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java
new file mode 100644 (file)
index 0000000..59b85d7
--- /dev/null
@@ -0,0 +1,78 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.Externs;\r
+\r
+import java.util.Vector;\r
+\r
+public class ExternsIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String type = null;\r
+    \r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+\r
+    public ExternsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.type = (arg1 == null ? "" : arg1);\r
+        this.featureFlag = (arg2 == null ? "" : arg2);\r
+        this.supArchList = arg3;\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(ExternsIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsVector.java
new file mode 100644 (file)
index 0000000..ee5a031
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.Externs;\r
+\r
+import java.util.Vector;\r
+\r
+public class ExternsVector {\r
+\r
+    private Vector<ExternsIdentification> vExterns = new Vector<ExternsIdentification>();\r
+\r
+    public int findExterns(ExternsIdentification sfi) {\r
+        for (int index = 0; index < vExterns.size(); index++) {\r
+            if (vExterns.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findExterns(String name) {\r
+        for (int index = 0; index < vExterns.size(); index++) {\r
+            if (vExterns.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public ExternsIdentification getExterns(int index) {\r
+        if (index > -1) {\r
+            return vExterns.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addExterns(ExternsIdentification arg0) {\r
+        vExterns.addElement(arg0);\r
+    }\r
+\r
+    public void updateExterns(ExternsIdentification arg0, int arg1) {\r
+        vExterns.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeExterns(ExternsIdentification arg0) {\r
+        int index = findExterns(arg0);\r
+        if (index > -1) {\r
+            vExterns.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeExterns(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vExterns.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<ExternsIdentification> getvExterns() {\r
+        return vExterns;\r
+    }\r
+\r
+    public void setvExterns(Vector<ExternsIdentification> Externs) {\r
+        vExterns = Externs;\r
+    }\r
+\r
+    public Vector<String> getExternsName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vExterns.size(); index++) {\r
+            v.addElement(vExterns.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vExterns.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Guids/GuidsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Guids/GuidsIdentification.java
new file mode 100644 (file)
index 0000000..d167e06
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.Guids;\r
+\r
+import java.util.Vector;\r
+\r
+public class GuidsIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public GuidsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.usage = (arg1 == null ? "" : arg1);\r
+        this.featureFlag = (arg2 == null ? "" : arg2);\r
+        this.supArchList = arg3;\r
+        this.help = (arg4 == null ? "" : arg4);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(GuidsIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Guids/GuidsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Guids/GuidsVector.java
new file mode 100644 (file)
index 0000000..01694cc
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.Guids;\r
+\r
+import java.util.Vector;\r
+\r
+public class GuidsVector {\r
+\r
+    private Vector<GuidsIdentification> vGuids = new Vector<GuidsIdentification>();\r
+\r
+    public int findGuids(GuidsIdentification sfi) {\r
+        for (int index = 0; index < vGuids.size(); index++) {\r
+            if (vGuids.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findGuids(String name) {\r
+        for (int index = 0; index < vGuids.size(); index++) {\r
+            if (vGuids.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public GuidsIdentification getGuids(int index) {\r
+        if (index > -1) {\r
+            return vGuids.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addGuids(GuidsIdentification arg0) {\r
+        vGuids.addElement(arg0);\r
+    }\r
+\r
+    public void updateGuids(GuidsIdentification arg0, int arg1) {\r
+        vGuids.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeGuids(GuidsIdentification arg0) {\r
+        int index = findGuids(arg0);\r
+        if (index > -1) {\r
+            vGuids.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeGuids(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vGuids.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<GuidsIdentification> getvGuids() {\r
+        return vGuids;\r
+    }\r
+\r
+    public void setvGuids(Vector<GuidsIdentification> Guids) {\r
+        vGuids = Guids;\r
+    }\r
+\r
+    public Vector<String> getGuidsName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vGuids.size(); index++) {\r
+            v.addElement(vGuids.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vGuids.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/HiiPackages/HiiPackagesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/HiiPackages/HiiPackagesIdentification.java
new file mode 100644 (file)
index 0000000..4935d30
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.HiiPackages;\r
+\r
+import java.util.Vector;\r
+\r
+public class HiiPackagesIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public HiiPackagesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.usage = (arg1 == null ? "" : arg1);\r
+        this.featureFlag = (arg2 == null ? "" : arg2);\r
+        this.supArchList = arg3;\r
+        this.help = (arg4 == null ? "" : arg4);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(HiiPackagesIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/HiiPackages/HiiPackagesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/HiiPackages/HiiPackagesVector.java
new file mode 100644 (file)
index 0000000..161f6a4
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.HiiPackages;\r
+\r
+import java.util.Vector;\r
+\r
+public class HiiPackagesVector {\r
+\r
+    private Vector<HiiPackagesIdentification> vHiiPackages = new Vector<HiiPackagesIdentification>();\r
+\r
+    public int findHiiPackages(HiiPackagesIdentification sfi) {\r
+        for (int index = 0; index < vHiiPackages.size(); index++) {\r
+            if (vHiiPackages.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findHiiPackages(String name) {\r
+        for (int index = 0; index < vHiiPackages.size(); index++) {\r
+            if (vHiiPackages.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public HiiPackagesIdentification getHiiPackages(int index) {\r
+        if (index > -1) {\r
+            return vHiiPackages.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addHiiPackages(HiiPackagesIdentification arg0) {\r
+        vHiiPackages.addElement(arg0);\r
+    }\r
+\r
+    public void updateHiiPackages(HiiPackagesIdentification arg0, int arg1) {\r
+        vHiiPackages.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeHiiPackages(HiiPackagesIdentification arg0) {\r
+        int index = findHiiPackages(arg0);\r
+        if (index > -1) {\r
+            vHiiPackages.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeHiiPackages(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vHiiPackages.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<HiiPackagesIdentification> getvHiiPackages() {\r
+        return vHiiPackages;\r
+    }\r
+\r
+    public void setvHiiPackages(Vector<HiiPackagesIdentification> HiiPackages) {\r
+        vHiiPackages = HiiPackages;\r
+    }\r
+\r
+    public Vector<String> getHiiPackagesName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vHiiPackages.size(); index++) {\r
+            v.addElement(vHiiPackages.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vHiiPackages.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Hobs/HobsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Hobs/HobsIdentification.java
new file mode 100644 (file)
index 0000000..e2144fa
--- /dev/null
@@ -0,0 +1,100 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.Hobs;\r
+\r
+import java.util.Vector;\r
+\r
+public class HobsIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String type = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public HobsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.type = (arg1 == null ? "" : arg1);\r
+        this.usage = (arg2 == null ? "" : arg2);\r
+        this.featureFlag = (arg3 == null ? "" : arg3);\r
+        this.supArchList = arg4;\r
+        this.help = (arg5 == null ? "" : arg5);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(HobsIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Hobs/HobsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Hobs/HobsVector.java
new file mode 100644 (file)
index 0000000..fbbf529
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.Hobs;\r
+\r
+import java.util.Vector;\r
+\r
+public class HobsVector {\r
+\r
+    private Vector<HobsIdentification> vHobs = new Vector<HobsIdentification>();\r
+\r
+    public int findHobs(HobsIdentification sfi) {\r
+        for (int index = 0; index < vHobs.size(); index++) {\r
+            if (vHobs.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findHobs(String name) {\r
+        for (int index = 0; index < vHobs.size(); index++) {\r
+            if (vHobs.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public HobsIdentification getHobs(int index) {\r
+        if (index > -1) {\r
+            return vHobs.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addHobs(HobsIdentification arg0) {\r
+        vHobs.addElement(arg0);\r
+    }\r
+\r
+    public void updateHobs(HobsIdentification arg0, int arg1) {\r
+        vHobs.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeHobs(HobsIdentification arg0) {\r
+        int index = findHobs(arg0);\r
+        if (index > -1) {\r
+            vHobs.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeHobs(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vHobs.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<HobsIdentification> getvHobs() {\r
+        return vHobs;\r
+    }\r
+\r
+    public void setvHobs(Vector<HobsIdentification> Hobs) {\r
+        vHobs = Hobs;\r
+    }\r
+\r
+    public Vector<String> getHobsName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vHobs.size(); index++) {\r
+            v.addElement(vHobs.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vHobs.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/LibraryClass/LibraryClassIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/LibraryClass/LibraryClassIdentification.java
new file mode 100644 (file)
index 0000000..b5d7ead
--- /dev/null
@@ -0,0 +1,124 @@
+/** @file\r
+\r
+ The file is used to define Library Class Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.LibraryClass;\r
+\r
+import java.util.Vector;\r
+\r
+public class LibraryClassIdentification {\r
+    private String libraryClassName = null;\r
+\r
+    private String usage = null;\r
+\r
+    private String recommendedInstanceVersion = null;\r
+\r
+    private String recommendedInstanceGuid = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private Vector<String> supModuleList = null;\r
+    \r
+    private String help = null;\r
+\r
+    public LibraryClassIdentification() {\r
+\r
+    }\r
+\r
+    public LibraryClassIdentification(String strName, String strUsage, String strRecommendedInstanceVersion,\r
+                                      String strRecommendedInstanceGuid, Vector<String> vSupArchList,\r
+                                      String strFeatureFlag, Vector<String> vSupModuleList, String strHelp) {\r
+        this.libraryClassName = (strName == null ? "" : strName);\r
+        this.usage = (strUsage == null ? "" : strUsage);\r
+        this.recommendedInstanceVersion = (strRecommendedInstanceVersion == null ? "" : strRecommendedInstanceVersion);\r
+        this.recommendedInstanceGuid = (strRecommendedInstanceGuid == null ? "" : strRecommendedInstanceGuid);\r
+        this.supArchList = vSupArchList;\r
+        this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
+        this.supModuleList = vSupModuleList;\r
+        this.help = (strHelp == null ? "" : strHelp);\r
+    }\r
+\r
+    public String getLibraryClassName() {\r
+        return libraryClassName;\r
+    }\r
+\r
+    public void setLibraryClassName(String libraryClassName) {\r
+        this.libraryClassName = libraryClassName;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getRecommendedInstanceGuid() {\r
+        return recommendedInstanceGuid;\r
+    }\r
+\r
+    public void setRecommendedInstanceGuid(String recommendedInstanceGuid) {\r
+        this.recommendedInstanceGuid = recommendedInstanceGuid;\r
+    }\r
+\r
+    public String getRecommendedInstanceVersion() {\r
+        return recommendedInstanceVersion;\r
+    }\r
+\r
+    public void setRecommendedInstanceVersion(String recommendedInstanceVersion) {\r
+        this.recommendedInstanceVersion = recommendedInstanceVersion;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(LibraryClassIdentification lib) {\r
+        if (this.libraryClassName.equals(lib.libraryClassName) && this.usage.equals(lib.getUsage())) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public Vector<String> getSupModuleList() {\r
+        return supModuleList;\r
+    }\r
+\r
+    public void setSupModuleList(Vector<String> supModuleList) {\r
+        this.supModuleList = supModuleList;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/LibraryClass/LibraryClassVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/LibraryClass/LibraryClassVector.java
new file mode 100644 (file)
index 0000000..f7af757
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
\r
+ The file is used to define Library Class Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.LibraryClass;\r
+\r
+import java.util.Vector;\r
+\r
+\r
+public class LibraryClassVector {\r
+    private Vector<LibraryClassIdentification> vLibraryClass = new Vector<LibraryClassIdentification>();\r
+    \r
+    public int findLibraryClass(LibraryClassIdentification lib) {\r
+        for (int index = 0; index < vLibraryClass.size(); index++) {\r
+            if (vLibraryClass.elementAt(index).equals(lib)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+    \r
+    public int findLibraryClass(String name) {\r
+        for (int index = 0; index < vLibraryClass.size(); index++) {\r
+            if (vLibraryClass.elementAt(index).getLibraryClassName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+    \r
+    public LibraryClassIdentification getLibraryClass(int index) {\r
+        if (index > -1) {\r
+            return vLibraryClass.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+    \r
+    public void addLibraryClass(LibraryClassIdentification lib) {\r
+        vLibraryClass.addElement(lib);\r
+    }\r
+    \r
+    public void updateLibraryClass(LibraryClassIdentification lib, int index) {\r
+        vLibraryClass.setElementAt(lib, index);\r
+    }\r
+    \r
+    public void removeLibraryClass(LibraryClassIdentification lib) {\r
+        int index = findLibraryClass(lib);\r
+        if (index > -1) {\r
+            vLibraryClass.removeElementAt(index);\r
+        }\r
+    }\r
+    \r
+    public void removeLibraryClass(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vLibraryClass.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<LibraryClassIdentification> getVLibraryClass() {\r
+        return vLibraryClass;\r
+    }\r
+\r
+    public void setVLibraryClass(Vector<LibraryClassIdentification> libraryClass) {\r
+        vLibraryClass = libraryClass;\r
+    }\r
+    \r
+    public Vector<String> getLibraryClassName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vLibraryClass.size(); index++) {\r
+            v.addElement(vLibraryClass.get(index).getLibraryClassName());\r
+        }\r
+        return v;\r
+    }\r
+    \r
+    public int size() {\r
+        return this.vLibraryClass.size();\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/ModuleIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/ModuleIdentification.java
new file mode 100644 (file)
index 0000000..cef0229
--- /dev/null
@@ -0,0 +1,69 @@
+/** @file\r
\r
+ The file is used to save basic information of module\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications;\r
+\r
+\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
+\r
+public class ModuleIdentification extends Identification {\r
+    \r
+    private PackageIdentification packageId;\r
+    \r
+    public ModuleIdentification(String name, String guid, String version, String path) {\r
+       super(name, guid, version, path);\r
+    }\r
+    \r
+    public ModuleIdentification(Identification id) {\r
+        super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
+    }\r
+    \r
+    public ModuleIdentification(String name, String guid, String version, String path, PackageIdentification packageId){\r
+        super(name, guid, version, path);\r
+        this.packageId = packageId;\r
+    }\r
+    \r
+    public ModuleIdentification(Identification id, PackageIdentification packageId) {\r
+        super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
+        this.packageId = packageId;\r
+    }\r
+    \r
+//    public boolean equals(Object obj) {\r
+//        if (obj instanceof Identification) {\r
+//            Identification id = (Identification)obj;\r
+//            if ( this.getName().equalsIgnoreCase(id.getName())) {\r
+//                return true;\r
+//            }\r
+//            // and package is the same one\r
+//            return false;\r
+//        }\r
+//        else {\r
+//            return super.equals(obj);\r
+//        }\r
+//    }\r
+    \r
+    public String toString(){\r
+        return "Module " + this.getName() + "[" + this.getGuid() + "] in package " + packageId;\r
+    }\r
+\r
+    public PackageIdentification getPackageId() {\r
+        return packageId;\r
+    }\r
+\r
+    public void setPackageId(PackageIdentification packageId) {\r
+        this.packageId = packageId;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PackageDependencies/PackageDependenciesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PackageDependencies/PackageDependenciesIdentification.java
new file mode 100644 (file)
index 0000000..170c417
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.PackageDependencies;\r
+\r
+import java.util.Vector;\r
+\r
+public class PackageDependenciesIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String version = null;\r
+\r
+    private String guid = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+\r
+    public PackageDependenciesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.version = (arg1 == null ? "" : arg1);\r
+        this.guid = (arg2 == null ? "" : arg2);\r
+        this.featureFlag = (arg3 == null ? "" : arg3);\r
+        this.supArchList = arg4;\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getGuid() {\r
+        return guid;\r
+    }\r
+\r
+    public void setGuid(String guid) {\r
+        this.guid = guid;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+\r
+    public String getVersion() {\r
+        return version;\r
+    }\r
+\r
+    public void setVersion(String version) {\r
+        this.version = version;\r
+    }\r
+    \r
+    public boolean equals(PackageDependenciesIdentification pdi) {\r
+        if (this.guid.equals(pdi.guid)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PackageDependencies/PackageDependenciesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PackageDependencies/PackageDependenciesVector.java
new file mode 100644 (file)
index 0000000..386a803
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.PackageDependencies;\r
+\r
+import java.util.Vector;\r
+\r
+public class PackageDependenciesVector {\r
+\r
+    private Vector<PackageDependenciesIdentification> vPackageDependencies = new Vector<PackageDependenciesIdentification>();\r
+\r
+    public int findPackageDependencies(PackageDependenciesIdentification sfi) {\r
+        for (int index = 0; index < vPackageDependencies.size(); index++) {\r
+            if (vPackageDependencies.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findPackageDependencies(String name) {\r
+        for (int index = 0; index < vPackageDependencies.size(); index++) {\r
+            if (vPackageDependencies.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public PackageDependenciesIdentification getPackageDependencies(int index) {\r
+        if (index > -1) {\r
+            return vPackageDependencies.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addPackageDependencies(PackageDependenciesIdentification arg0) {\r
+        vPackageDependencies.addElement(arg0);\r
+    }\r
+\r
+    public void updatePackageDependencies(PackageDependenciesIdentification arg0, int arg1) {\r
+        vPackageDependencies.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removePackageDependencies(PackageDependenciesIdentification arg0) {\r
+        int index = findPackageDependencies(arg0);\r
+        if (index > -1) {\r
+            vPackageDependencies.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removePackageDependencies(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vPackageDependencies.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<PackageDependenciesIdentification> getvPackageDependencies() {\r
+        return vPackageDependencies;\r
+    }\r
+\r
+    public void setvPackageDependencies(Vector<PackageDependenciesIdentification> PackageDependencies) {\r
+        vPackageDependencies = PackageDependencies;\r
+    }\r
+\r
+    public Vector<String> getPackageDependenciesName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vPackageDependencies.size(); index++) {\r
+            v.addElement(vPackageDependencies.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vPackageDependencies.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PcdCoded/PcdCodedIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PcdCoded/PcdCodedIdentification.java
new file mode 100644 (file)
index 0000000..7f2f377
--- /dev/null
@@ -0,0 +1,111 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.PcdCoded;\r
+\r
+import java.util.Vector;\r
+\r
+public class PcdCodedIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String guid = null;\r
+    \r
+    private String featureFlag = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String value = null;\r
+    \r
+    private String help = null;\r
+    \r
+    private String type = null;\r
+\r
+    public PcdCodedIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4, String arg5, String arg6) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.guid = (arg1 == null ? "" : arg1);\r
+        this.featureFlag = (arg2 == null ? "" : arg2);\r
+        this.supArchList = arg3;\r
+        this.value = (arg4 == null ? "" : arg4);\r
+        this.help = (arg5 == null ? "" : arg5);\r
+        this.type = (arg6 == null ? "" : arg6);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(PcdCodedIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getGuid() {\r
+        return guid;\r
+    }\r
+\r
+    public void setGuid(String guid) {\r
+        this.guid = guid;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getValue() {\r
+        return value;\r
+    }\r
+\r
+    public void setValue(String value) {\r
+        this.value = value;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PcdCoded/PcdCodedVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PcdCoded/PcdCodedVector.java
new file mode 100644 (file)
index 0000000..023290d
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.PcdCoded;\r
+\r
+import java.util.Vector;\r
+\r
+public class PcdCodedVector {\r
+\r
+    private Vector<PcdCodedIdentification> vPcdCoded = new Vector<PcdCodedIdentification>();\r
+\r
+    public int findPcdCoded(PcdCodedIdentification sfi) {\r
+        for (int index = 0; index < vPcdCoded.size(); index++) {\r
+            if (vPcdCoded.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findPcdCoded(String name) {\r
+        for (int index = 0; index < vPcdCoded.size(); index++) {\r
+            if (vPcdCoded.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public PcdCodedIdentification getPcdCoded(int index) {\r
+        if (index > -1) {\r
+            return vPcdCoded.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addPcdCoded(PcdCodedIdentification arg0) {\r
+        vPcdCoded.addElement(arg0);\r
+    }\r
+\r
+    public void updatePcdCoded(PcdCodedIdentification arg0, int arg1) {\r
+        vPcdCoded.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removePcdCoded(PcdCodedIdentification arg0) {\r
+        int index = findPcdCoded(arg0);\r
+        if (index > -1) {\r
+            vPcdCoded.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removePcdCoded(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vPcdCoded.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<PcdCodedIdentification> getvPcdCoded() {\r
+        return vPcdCoded;\r
+    }\r
+\r
+    public void setvPcdCoded(Vector<PcdCodedIdentification> PcdCoded) {\r
+        vPcdCoded = PcdCoded;\r
+    }\r
+\r
+    public Vector<String> getPcdCodedName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vPcdCoded.size(); index++) {\r
+            v.addElement(vPcdCoded.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vPcdCoded.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Ppis/PpisIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Ppis/PpisIdentification.java
new file mode 100644 (file)
index 0000000..8d0198e
--- /dev/null
@@ -0,0 +1,100 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.Ppis;\r
+\r
+import java.util.Vector;\r
+\r
+public class PpisIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String type = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public PpisIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.type = (arg1 == null ? "" : arg1);\r
+        this.usage = (arg2 == null ? "" : arg2);\r
+        this.featureFlag = (arg3 == null ? "" : arg3);\r
+        this.supArchList = arg4;\r
+        this.help = (arg5 == null ? "" : arg5);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(PpisIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Ppis/PpisVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Ppis/PpisVector.java
new file mode 100644 (file)
index 0000000..b1d3457
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.Ppis;\r
+\r
+import java.util.Vector;\r
+\r
+public class PpisVector {\r
+\r
+    private Vector<PpisIdentification> vPpis = new Vector<PpisIdentification>();\r
+\r
+    public int findPpis(PpisIdentification sfi) {\r
+        for (int index = 0; index < vPpis.size(); index++) {\r
+            if (vPpis.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findPpis(String name) {\r
+        for (int index = 0; index < vPpis.size(); index++) {\r
+            if (vPpis.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public PpisIdentification getPpis(int index) {\r
+        if (index > -1) {\r
+            return vPpis.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addPpis(PpisIdentification arg0) {\r
+        vPpis.addElement(arg0);\r
+    }\r
+\r
+    public void updatePpis(PpisIdentification arg0, int arg1) {\r
+        vPpis.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removePpis(PpisIdentification arg0) {\r
+        int index = findPpis(arg0);\r
+        if (index > -1) {\r
+            vPpis.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removePpis(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vPpis.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<PpisIdentification> getvPpis() {\r
+        return vPpis;\r
+    }\r
+\r
+    public void setvPpis(Vector<PpisIdentification> Ppis) {\r
+        vPpis = Ppis;\r
+    }\r
+\r
+    public Vector<String> getPpisName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vPpis.size(); index++) {\r
+            v.addElement(vPpis.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vPpis.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsIdentification.java
new file mode 100644 (file)
index 0000000..deaa71d
--- /dev/null
@@ -0,0 +1,100 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.Protocols;\r
+\r
+import java.util.Vector;\r
+\r
+public class ProtocolsIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String type = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public ProtocolsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.type = (arg1 == null ? "" : arg1);\r
+        this.usage = (arg2 == null ? "" : arg2);\r
+        this.featureFlag = (arg3 == null ? "" : arg3);\r
+        this.supArchList = arg4;\r
+        this.help = (arg5 == null ? "" : arg5);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(ProtocolsIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsVector.java
new file mode 100644 (file)
index 0000000..b966704
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.Protocols;\r
+\r
+import java.util.Vector;\r
+\r
+public class ProtocolsVector {\r
+\r
+    private Vector<ProtocolsIdentification> vProtocols = new Vector<ProtocolsIdentification>();\r
+\r
+    public int findProtocols(ProtocolsIdentification sfi) {\r
+        for (int index = 0; index < vProtocols.size(); index++) {\r
+            if (vProtocols.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findProtocols(String name) {\r
+        for (int index = 0; index < vProtocols.size(); index++) {\r
+            if (vProtocols.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public ProtocolsIdentification getProtocols(int index) {\r
+        if (index > -1) {\r
+            return vProtocols.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addProtocols(ProtocolsIdentification arg0) {\r
+        vProtocols.addElement(arg0);\r
+    }\r
+\r
+    public void updateProtocols(ProtocolsIdentification arg0, int arg1) {\r
+        vProtocols.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeProtocols(ProtocolsIdentification arg0) {\r
+        int index = findProtocols(arg0);\r
+        if (index > -1) {\r
+            vProtocols.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeProtocols(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vProtocols.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<ProtocolsIdentification> getvProtocols() {\r
+        return vProtocols;\r
+    }\r
+\r
+    public void setvProtocols(Vector<ProtocolsIdentification> Protocols) {\r
+        vProtocols = Protocols;\r
+    }\r
+\r
+    public Vector<String> getProtocolsName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vProtocols.size(); index++) {\r
+            v.addElement(vProtocols.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vProtocols.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesIdentification.java
new file mode 100644 (file)
index 0000000..31e9aec
--- /dev/null
@@ -0,0 +1,97 @@
+/** @file\r
+\r
+ The file is used to define Source Files Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.SourceFiles;\r
+\r
+import java.util.Vector;\r
+\r
+public class SourceFilesIdentification {\r
+\r
+    private String filename = null;\r
+\r
+    private String tagName = null;\r
+    \r
+    private String toolCode = null;\r
+    \r
+    private String toolChainFamily = null;\r
+    \r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+\r
+    public SourceFilesIdentification(String strFilename, String strTagName, String strToolCode, String strToolChainFamily,\r
+                                     String strFeatureFlag, Vector<String> arch) {\r
+        this.filename = (strFilename == null ? "" : strFilename);\r
+        this.tagName = (strTagName == null ? "" : strTagName);\r
+        this.toolCode = (strToolCode == null ? "" : strToolCode);\r
+        this.toolChainFamily = (strToolChainFamily == null ? "" : strToolChainFamily);\r
+        this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
+        this.supArchList = arch;\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getFilename() {\r
+        return filename;\r
+    }\r
+\r
+    public void setFilename(String filename) {\r
+        this.filename = filename;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+\r
+    public String getTagName() {\r
+        return tagName;\r
+    }\r
+\r
+    public void setTagName(String tagName) {\r
+        this.tagName = tagName;\r
+    }\r
+\r
+    public String getToolChainFamily() {\r
+        return toolChainFamily;\r
+    }\r
+\r
+    public void setToolChainFamily(String toolChainFamily) {\r
+        this.toolChainFamily = toolChainFamily;\r
+    }\r
+\r
+    public String getToolCode() {\r
+        return toolCode;\r
+    }\r
+\r
+    public void setToolCode(String toolCode) {\r
+        this.toolCode = toolCode;\r
+    }\r
+    \r
+    public boolean equals(SourceFilesIdentification sfid) {\r
+        if (this.filename.equals(sfid.filename)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesVector.java
new file mode 100644 (file)
index 0000000..8dccb74
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
\r
+ The file is used to define Source Files Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.SourceFiles;\r
+\r
+import java.util.Vector;\r
+\r
+public class SourceFilesVector {\r
+    private Vector<SourceFilesIdentification> vSourceFiles = new Vector<SourceFilesIdentification>();\r
+\r
+    public int findSourceFiles(SourceFilesIdentification sfi) {\r
+        for (int index = 0; index < vSourceFiles.size(); index++) {\r
+            if (vSourceFiles.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findSourceFiles(String name) {\r
+        for (int index = 0; index < vSourceFiles.size(); index++) {\r
+            if (vSourceFiles.elementAt(index).getFilename().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public SourceFilesIdentification getSourceFiles(int index) {\r
+        if (index > -1) {\r
+            return vSourceFiles.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addSourceFiles(SourceFilesIdentification sfi) {\r
+        vSourceFiles.addElement(sfi);\r
+    }\r
+\r
+    public void updateSourceFiles(SourceFilesIdentification sfi, int index) {\r
+        vSourceFiles.setElementAt(sfi, index);\r
+    }\r
+\r
+    public void removeSourceFiles(SourceFilesIdentification sfi) {\r
+        int index = findSourceFiles(sfi);\r
+        if (index > -1) {\r
+            vSourceFiles.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeSourceFiles(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vSourceFiles.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<SourceFilesIdentification> getvSourceFiles() {\r
+        return vSourceFiles;\r
+    }\r
+\r
+    public void setvSourceFiles(Vector<SourceFilesIdentification> SourceFiles) {\r
+        vSourceFiles = SourceFiles;\r
+    }\r
+    \r
+    public Vector<String> getSourceFilesName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vSourceFiles.size(); index++) {\r
+            v.addElement(vSourceFiles.get(index).getFilename());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vSourceFiles.size();\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SystemTables/SystemTablesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SystemTables/SystemTablesIdentification.java
new file mode 100644 (file)
index 0000000..d2952c0
--- /dev/null
@@ -0,0 +1,89 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.SystemTables;\r
+\r
+import java.util.Vector;\r
+\r
+public class SystemTablesIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public SystemTablesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.usage = (arg1 == null ? "" : arg1);\r
+        this.featureFlag = (arg2 == null ? "" : arg2);\r
+        this.supArchList = arg3;\r
+        this.help = (arg4 == null ? "" : arg4);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(SystemTablesIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SystemTables/SystemTablesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SystemTables/SystemTablesVector.java
new file mode 100644 (file)
index 0000000..8babcd7
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.SystemTables;\r
+\r
+import java.util.Vector;\r
+\r
+public class SystemTablesVector {\r
+\r
+    private Vector<SystemTablesIdentification> vSystemTables = new Vector<SystemTablesIdentification>();\r
+\r
+    public int findSystemTables(SystemTablesIdentification sfi) {\r
+        for (int index = 0; index < vSystemTables.size(); index++) {\r
+            if (vSystemTables.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findSystemTables(String name) {\r
+        for (int index = 0; index < vSystemTables.size(); index++) {\r
+            if (vSystemTables.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public SystemTablesIdentification getSystemTables(int index) {\r
+        if (index > -1) {\r
+            return vSystemTables.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addSystemTables(SystemTablesIdentification arg0) {\r
+        vSystemTables.addElement(arg0);\r
+    }\r
+\r
+    public void updateSystemTables(SystemTablesIdentification arg0, int arg1) {\r
+        vSystemTables.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeSystemTables(SystemTablesIdentification arg0) {\r
+        int index = findSystemTables(arg0);\r
+        if (index > -1) {\r
+            vSystemTables.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeSystemTables(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vSystemTables.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<SystemTablesIdentification> getvSystemTables() {\r
+        return vSystemTables;\r
+    }\r
+\r
+    public void setvSystemTables(Vector<SystemTablesIdentification> SystemTables) {\r
+        vSystemTables = SystemTables;\r
+    }\r
+\r
+    public Vector<String> getSystemTablesName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vSystemTables.size(); index++) {\r
+            v.addElement(vSystemTables.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vSystemTables.size();\r
+    }\r
+\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Variables/VariablesIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Variables/VariablesIdentification.java
new file mode 100644 (file)
index 0000000..24d8186
--- /dev/null
@@ -0,0 +1,100 @@
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+\r
+package org.tianocore.frameworkwizard.module.Identifications.Variables;\r
+\r
+import java.util.Vector;\r
+\r
+public class VariablesIdentification {\r
+\r
+    //\r
+    // Define class members\r
+    //\r
+    private String name = null;\r
+\r
+    private String guid = null;\r
+\r
+    private String usage = null;\r
+\r
+    private Vector<String> supArchList = null;\r
+\r
+    private String featureFlag = null;\r
+    \r
+    private String help = null;\r
+\r
+    public VariablesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+        this.name = (arg0 == null ? "" : arg0);\r
+        this.guid = (arg1 == null ? "" : arg1);\r
+        this.usage = (arg2 == null ? "" : arg2);\r
+        this.featureFlag = (arg3 == null ? "" : arg3);\r
+        this.supArchList = arg4;\r
+        this.help = (arg5 == null ? "" : arg5);\r
+    }\r
+\r
+    public String getFeatureFlag() {\r
+        return featureFlag;\r
+    }\r
+\r
+    public void setFeatureFlag(String featureFlag) {\r
+        this.featureFlag = featureFlag;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<String> getSupArchList() {\r
+        return supArchList;\r
+    }\r
+\r
+    public void setSupArchList(Vector<String> supArchList) {\r
+        this.supArchList = supArchList;\r
+    }\r
+    \r
+    public boolean equals(VariablesIdentification pi) {\r
+        if (this.name.equals(pi.name)) {\r
+            return true;\r
+        }\r
+        return false;\r
+    }\r
+\r
+    public String getUsage() {\r
+        return usage;\r
+    }\r
+\r
+    public void setUsage(String usage) {\r
+        this.usage = usage;\r
+    }\r
+\r
+    public String getGuid() {\r
+        return guid;\r
+    }\r
+\r
+    public void setGuid(String guid) {\r
+        this.guid = guid;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+}\r
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Variables/VariablesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Variables/VariablesVector.java
new file mode 100644 (file)
index 0000000..9465457
--- /dev/null
@@ -0,0 +1,90 @@
+/** @file\r
\r
+ The file is used to define Package Dependencies Vector\r
\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ **/\r
+package org.tianocore.frameworkwizard.module.Identifications.Variables;\r
+\r
+import java.util.Vector;\r
+\r
+public class VariablesVector {\r
+\r
+    private Vector<VariablesIdentification> vVariables = new Vector<VariablesIdentification>();\r
+\r
+    public int findVariables(VariablesIdentification sfi) {\r
+        for (int index = 0; index < vVariables.size(); index++) {\r
+            if (vVariables.elementAt(index).equals(sfi)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public int findVariables(String name) {\r
+        for (int index = 0; index < vVariables.size(); index++) {\r
+            if (vVariables.elementAt(index).getName().equals(name)) {\r
+                return index;\r
+            }\r
+        }\r
+        return -1;\r
+    }\r
+\r
+    public VariablesIdentification getVariables(int index) {\r
+        if (index > -1) {\r
+            return vVariables.elementAt(index);\r
+        } else {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void addVariables(VariablesIdentification arg0) {\r
+        vVariables.addElement(arg0);\r
+    }\r
+\r
+    public void updateVariables(VariablesIdentification arg0, int arg1) {\r
+        vVariables.setElementAt(arg0, arg1);\r
+    }\r
+\r
+    public void removeVariables(VariablesIdentification arg0) {\r
+        int index = findVariables(arg0);\r
+        if (index > -1) {\r
+            vVariables.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public void removeVariables(int index) {\r
+        if (index > -1 && index < this.size()) {\r
+            vVariables.removeElementAt(index);\r
+        }\r
+    }\r
+\r
+    public Vector<VariablesIdentification> getvVariables() {\r
+        return vVariables;\r
+    }\r
+\r
+    public void setvVariables(Vector<VariablesIdentification> Variables) {\r
+        vVariables = Variables;\r
+    }\r
+\r
+    public Vector<String> getVariablesName() {\r
+        Vector<String> v = new Vector<String>();\r
+        for (int index = 0; index < this.vVariables.size(); index++) {\r
+            v.addElement(vVariables.get(index).getName());\r
+        }\r
+        return v;\r
+    }\r
+\r
+    public int size() {\r
+        return this.vVariables.size();\r
+    }\r
+\r
+}\r
index 4e0652cb4ef4c14ef9fdbc3542e19770bee40b1c..978214645eae578e612f552d41b87f5cfbaf0f5c 100644 (file)
@@ -38,13 +38,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.BootModes.BootModesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.BootModes.BootModesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.BootModes.BootModesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.BootModes.BootModesVector;\r
 \r
 /**\r
  The class is used to create, update BootModes of MSA/MBD file\r
index 8905518a71861cf509129626e2ce2ecdac911b35..cf342d24c4be41d11d8b55db24e5cdd7cd0b4096 100644 (file)
@@ -37,13 +37,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.DataHubs.DataHubsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.DataHubs.DataHubsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.DataHubs.DataHubsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.DataHubs.DataHubsVector;\r
 \r
 /**\r
  The class is used to create, update DataHub of MSA/MBD file\r
@@ -147,6 +147,7 @@ public class ModuleDataHubs extends IInternalFrame {
             jTextFieldDataHubRecord = new JTextField();\r
             jTextFieldDataHubRecord.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
             jTextFieldDataHubRecord.setPreferredSize(new java.awt.Dimension(320, 20));\r
+            jTextFieldDataHubRecord.setToolTipText("Enter the C Name of the Data Hub Record");\r
         }\r
         return jTextFieldDataHubRecord;\r
     }\r
index f3bc5e70c616a09e3f5c92213cad113d8eeda86d..8fd573cc1c55b813a0075c3df73e04480df2d66e 100644 (file)
@@ -26,11 +26,12 @@ import javax.swing.JComboBox;
 import org.tianocore.ModuleDefinitionsDocument;\r
 import org.tianocore.ModuleSurfaceAreaDocument;\r
 import org.tianocore.ModuleDefinitionsDocument.ModuleDefinitions.ClonedFrom;\r
+import org.tianocore.frameworkwizard.common.DataType;\r
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
@@ -136,6 +137,7 @@ public class ModuleDefinitions extends IInternalFrame {
         if (iCheckBoxListArch == null) {\r
             iCheckBoxListArch = new ICheckBoxList();\r
             iCheckBoxListArch.addFocusListener(this);\r
+            iCheckBoxListArch.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
         }\r
         return iCheckBoxListArch;\r
     }\r
@@ -343,5 +345,7 @@ public class ModuleDefinitions extends IInternalFrame {
 \r
     public void focusLost(FocusEvent arg0) {\r
         this.save();\r
+        if (arg0.getSource() == this.jTextFieldOutputFileBasename) {\r
+        }\r
     }\r
 }\r
index 165fbd60686bf1078cd757cf212f2c2a3cf4cc50..26c8a62c36518669c5a9779c7c455aa80f28c0e6 100644 (file)
@@ -38,13 +38,14 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Events.EventsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Events.EventsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Events.EventsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Events.EventsVector;\r
+import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
  The class is used to create, update Event of MSA/MBD file\r
@@ -69,7 +70,7 @@ public class ModuleEvents extends IInternalFrame {
 \r
     private JLabel jLabelC_Name = null;\r
 \r
-    private JTextField jTextFieldC_Name = null;\r
+    private JComboBox jComboBoxGuidC_Name = null;\r
 \r
     private JLabel jLabelUsage = null;\r
 \r
@@ -125,6 +126,8 @@ public class ModuleEvents extends IInternalFrame {
     private EventsVector vid = new EventsVector();\r
 \r
     private EnumerationData ed = new EnumerationData();\r
+    \r
+    private WorkspaceTools wt = new WorkspaceTools();\r
 \r
     /**\r
      This method initializes jTextFieldC_Name \r
@@ -132,13 +135,14 @@ public class ModuleEvents extends IInternalFrame {
      @return javax.swing.JTextField jTextFieldC_Name\r
      \r
      **/\r
-    private JTextField getJTextFieldC_Name() {\r
-        if (jTextFieldC_Name == null) {\r
-            jTextFieldC_Name = new JTextField();\r
-            jTextFieldC_Name.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
-            jTextFieldC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+    private JComboBox getJComboBoxGuidC_Name() {\r
+        if (jComboBoxGuidC_Name == null) {\r
+            jComboBoxGuidC_Name = new JComboBox();\r
+            jComboBoxGuidC_Name.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
+            jComboBoxGuidC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+            jComboBoxGuidC_Name.setToolTipText("Select the GUID C Name of the Event");\r
         }\r
-        return jTextFieldC_Name;\r
+        return jComboBoxGuidC_Name;\r
     }\r
 \r
     /**\r
@@ -166,6 +170,7 @@ public class ModuleEvents extends IInternalFrame {
             jComboBoxEventsType = new JComboBox();\r
             jComboBoxEventsType.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
             jComboBoxEventsType.setPreferredSize(new java.awt.Dimension(320, 20));\r
+            jComboBoxEventsType.setToolTipText("Select Create event if the Module has an event that is waiting to be signaled.  Select Signal if the Module will signal all events in an event group.  Signal Event The events are named by GUID.");\r
         }\r
         return jComboBoxEventsType;\r
     }\r
@@ -445,7 +450,7 @@ public class ModuleEvents extends IInternalFrame {
      **/\r
     public void setViewMode(boolean isView) {\r
         if (isView) {\r
-            this.jTextFieldC_Name.setEnabled(!isView);\r
+            this.jComboBoxGuidC_Name.setEnabled(!isView);\r
             this.jComboBoxUsage.setEnabled(!isView);\r
         }\r
     }\r
@@ -483,7 +488,7 @@ public class ModuleEvents extends IInternalFrame {
 \r
             jContentPane.add(jLabelEventType, null);\r
             jContentPane.add(jLabelC_Name, null);\r
-            jContentPane.add(getJTextFieldC_Name(), null);\r
+            jContentPane.add(getJComboBoxGuidC_Name(), null);\r
             jContentPane.add(jLabelUsage, null);\r
             jContentPane.add(getJComboBoxUsage(), null);\r
             jStarLabel1 = new StarLabel();\r
@@ -517,6 +522,7 @@ public class ModuleEvents extends IInternalFrame {
     private void initFrame() {\r
         Tools.generateComboBoxByVector(jComboBoxEventsType, ed.getVEventType());\r
         Tools.generateComboBoxByVector(jComboBoxUsage, ed.getVEventUsage());\r
+        Tools.generateComboBoxByVector(jComboBoxGuidC_Name, wt.getAllGuidDeclarationsFromWorkspace());\r
         \r
         this.iCheckBoxListArch.setAllItems(ed.getVSupportedArchitectures());\r
     }\r
@@ -560,13 +566,13 @@ public class ModuleEvents extends IInternalFrame {
         //\r
         // Check Name \r
         //\r
-        if (isEmpty(this.jTextFieldC_Name.getText())) {\r
+        if (isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
             Log.err("Event Name couldn't be empty");\r
             return false;\r
         }\r
         \r
-        if (!isEmpty(this.jTextFieldC_Name.getText())) {\r
-            if (!DataValidation.isC_NameType(this.jTextFieldC_Name.getText())) {\r
+        if (!isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
+            if (!DataValidation.isC_NameType(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
                 Log.err("Incorrect data type for Event Name");\r
                 return false;\r
             }\r
@@ -673,7 +679,7 @@ public class ModuleEvents extends IInternalFrame {
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
         resizeComponentWidth(jComboBoxEventsType, intCurrentWidth, intPreferredWidth);\r
-        resizeComponentWidth(jTextFieldC_Name, intCurrentWidth, intPreferredWidth);\r
+        resizeComponentWidth(jComboBoxGuidC_Name, intCurrentWidth, intPreferredWidth);\r
         resizeComponentWidth(jComboBoxUsage, intCurrentWidth, intPreferredWidth);\r
         resizeComponentWidth(jTextFieldHelpText, intCurrentWidth, intPreferredWidth);\r
         resizeComponentWidth(jTextFieldFeatureFlag, intCurrentWidth, intPreferredWidth);\r
@@ -687,7 +693,7 @@ public class ModuleEvents extends IInternalFrame {
     }\r
     \r
     private EventsIdentification getCurrentEvents() {\r
-        String arg0 = this.jTextFieldC_Name.getText();\r
+        String arg0 = this.jComboBoxGuidC_Name.getSelectedItem().toString();\r
         String arg1 = this.jComboBoxEventsType.getSelectedItem().toString();\r
         String arg2 = this.jComboBoxUsage.getSelectedItem().toString();\r
 \r
@@ -811,7 +817,7 @@ public class ModuleEvents extends IInternalFrame {
             //\r
             intSelectedItemId = jComboBoxList.getSelectedIndex();\r
 \r
-            this.jTextFieldC_Name.setText(vid.getEvents(intSelectedItemId).getName());\r
+            this.jComboBoxGuidC_Name.setSelectedItem(vid.getEvents(intSelectedItemId).getName());\r
             this.jComboBoxEventsType.setSelectedItem(vid.getEvents(intSelectedItemId).getType());\r
             this.jComboBoxUsage.setSelectedItem(vid.getEvents(intSelectedItemId).getUsage());\r
             this.jTextFieldHelpText.setText(vid.getEvents(intSelectedItemId).getHelp());\r
index 6654e06e22a730dbb68e66a69b5bfe6d059010bd..cfabd0aeb76e3d0cfe7d80854ce6ba1f96556339 100644 (file)
@@ -37,12 +37,12 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Externs.ExternsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Externs.ExternsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Externs.ExternsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Externs.ExternsVector;\r
 \r
 /**\r
  The class is used to create, update DataHub of MSA/MBD file \r
index b8d085104bd4ba7293933a1f819a32348fb0364a..35ac3f52787557c1d4e0be5f16c4a1de8b957572 100644 (file)
@@ -36,13 +36,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Guids.GuidsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Guids.GuidsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Guids.GuidsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Guids.GuidsVector;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
index 008ea5d109683cc5a264a751bdc6553501d0c69e..aefeba500f7c48e1d9508405a45db588705dea8f 100644 (file)
@@ -36,13 +36,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.HiiPackages.HiiPackagesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.HiiPackages.HiiPackagesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.HiiPackages.HiiPackagesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.HiiPackages.HiiPackagesVector;\r
 \r
 /**\r
  The class is used to create, update Formset of MSA/MBD file\r
@@ -131,6 +131,7 @@ public class ModuleHiiPackages extends IInternalFrame {
             jTextFieldName = new JTextField();\r
             jTextFieldName.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
             jTextFieldName.setPreferredSize(new java.awt.Dimension(320, 20));\r
+            jTextFieldName.setToolTipText("Enter the C Name of the HII Package");\r
         }\r
         return jTextFieldName;\r
     }\r
index 81f2df92ffb314028196b36030a58f7193c7c847..7bbf1190b7f563a346387cedb84f03517c575bbd 100644 (file)
@@ -36,13 +36,14 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Hobs.HobsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Hobs.HobsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Hobs.HobsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Hobs.HobsVector;\r
+import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
  The class is used to create, update Hob of MSA/MBD file\r
@@ -65,7 +66,7 @@ public class ModuleHobs extends IInternalFrame {
 \r
     private JLabel jLabel = null;\r
 \r
-    private JTextField jTextFieldC_Name = null;\r
+    private JComboBox jComboBoxGuidC_Name = null;\r
 \r
     private JLabel jLabelUsage = null;\r
 \r
@@ -121,6 +122,8 @@ public class ModuleHobs extends IInternalFrame {
     private HobsVector vid = new HobsVector();\r
 \r
     private EnumerationData ed = new EnumerationData();\r
+    \r
+    private WorkspaceTools wt = new WorkspaceTools();\r
 \r
     /**\r
      This method initializes jTextField \r
@@ -128,13 +131,14 @@ public class ModuleHobs extends IInternalFrame {
      @return javax.swing.JTextField jTextFieldC_Name\r
      \r
      **/\r
-    private JTextField getJTextFieldC_Name() {\r
-        if (jTextFieldC_Name == null) {\r
-            jTextFieldC_Name = new JTextField();\r
-            jTextFieldC_Name.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
-            jTextFieldC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+    private JComboBox getJComboBoxGuidC_Name() {\r
+        if (jComboBoxGuidC_Name == null) {\r
+            jComboBoxGuidC_Name = new JComboBox();\r
+            jComboBoxGuidC_Name.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
+            jComboBoxGuidC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+            jComboBoxGuidC_Name.setToolTipText("Select the GUID C Name of the Hob");\r
         }\r
-        return jTextFieldC_Name;\r
+        return jComboBoxGuidC_Name;\r
     }\r
 \r
     /**\r
@@ -423,7 +427,7 @@ public class ModuleHobs extends IInternalFrame {
      **/\r
     public void setViewMode(boolean isView) {\r
         if (isView) {\r
-            this.jTextFieldC_Name.setEnabled(!isView);\r
+            this.jComboBoxGuidC_Name.setEnabled(!isView);\r
             this.jComboBoxUsage.setEnabled(!isView);\r
             this.jComboBoxHobType.setEnabled(!isView);\r
         }\r
@@ -461,7 +465,7 @@ public class ModuleHobs extends IInternalFrame {
             jContentPane.setPreferredSize(new java.awt.Dimension(490, 495));\r
 \r
             jContentPane.add(jLabel, null);\r
-            jContentPane.add(getJTextFieldC_Name(), null);\r
+            jContentPane.add(getJComboBoxGuidC_Name(), null);\r
             jContentPane.add(jLabelUsage, null);\r
             jContentPane.add(jLabelHobType, null);\r
             jContentPane.add(getJComboBoxUsage(), null);\r
@@ -493,6 +497,7 @@ public class ModuleHobs extends IInternalFrame {
     private void initFrame() {\r
         Tools.generateComboBoxByVector(jComboBoxUsage, ed.getVHobUsage());\r
         Tools.generateComboBoxByVector(jComboBoxHobType, ed.getVHobType());\r
+        Tools.generateComboBoxByVector(jComboBoxGuidC_Name, wt.getAllGuidDeclarationsFromWorkspace());\r
 \r
         this.iCheckBoxListArch.setAllItems(ed.getVSupportedArchitectures());\r
     }\r
@@ -536,13 +541,13 @@ public class ModuleHobs extends IInternalFrame {
         //\r
         // Check Name \r
         //\r
-        if (isEmpty(this.jTextFieldC_Name.getText())) {\r
+        if (isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
             Log.err("Hob Name couldn't be empty");\r
             return false;\r
         }\r
         \r
-        if (!isEmpty(this.jTextFieldC_Name.getText())) {\r
-            if (!DataValidation.isC_NameType(this.jTextFieldC_Name.getText())) {\r
+        if (!isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
+            if (!DataValidation.isC_NameType(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
                 Log.err("Incorrect data type for Hob Name");\r
                 return false;\r
             }\r
@@ -614,7 +619,7 @@ public class ModuleHobs extends IInternalFrame {
         int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
         int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
 \r
-        resizeComponentWidth(jTextFieldC_Name, intCurrentWidth, intPreferredWidth);\r
+        resizeComponentWidth(jComboBoxGuidC_Name, intCurrentWidth, intPreferredWidth);\r
         resizeComponentWidth(jComboBoxHobType, intCurrentWidth, intPreferredWidth);\r
         resizeComponentWidth(jComboBoxUsage, intCurrentWidth, intPreferredWidth);\r
         resizeComponentWidth(jTextFieldHelpText, intCurrentWidth, intPreferredWidth);\r
@@ -630,7 +635,7 @@ public class ModuleHobs extends IInternalFrame {
     }\r
     \r
     private HobsIdentification getCurrentHobs() {\r
-        String arg0 = this.jTextFieldC_Name.getText();\r
+        String arg0 = this.jComboBoxGuidC_Name.getSelectedItem().toString();\r
         String arg1 = this.jComboBoxHobType.getSelectedItem().toString();\r
         String arg2 = this.jComboBoxUsage.getSelectedItem().toString();\r
 \r
@@ -754,7 +759,7 @@ public class ModuleHobs extends IInternalFrame {
            //\r
            intSelectedItemId = jComboBoxList.getSelectedIndex();\r
 \r
-           this.jTextFieldC_Name.setText(vid.getHobs(intSelectedItemId).getName());\r
+           this.jComboBoxGuidC_Name.setSelectedItem(vid.getHobs(intSelectedItemId).getName());\r
            this.jComboBoxHobType.setSelectedItem(vid.getHobs(intSelectedItemId).getType());\r
            this.jComboBoxUsage.setSelectedItem(vid.getHobs(intSelectedItemId).getUsage());\r
            this.jTextFieldHelpText.setText(vid.getHobs(intSelectedItemId).getHelp());\r
index 6b060cb3ed25477cafdc6cf0b3c3649523acb454..a815c8549bd43eee0199a2454d6fd4ee698fb809 100644 (file)
@@ -37,13 +37,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.LibraryClass.LibraryClassIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.LibraryClass.LibraryClassVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.LibraryClass.LibraryClassIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.LibraryClass.LibraryClassVector;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
index f2cd16224575db2e76f6323b7dc569bb85a46b6c..028ad8aaedab4ac4f102ca7d06677174185f67ec 100644 (file)
@@ -36,13 +36,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.PcdCoded.PcdCodedIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.PcdCoded.PcdCodedVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.PcdCoded.PcdCodedIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.PcdCoded.PcdCodedVector;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
index beefb879dab292b0162474b0d307995db355939f..3ff3d4ad6d4f5fe57b0330a7cbcae1bc3c82efaa 100644 (file)
@@ -36,13 +36,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.PackageDependencies.PackageDependenciesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.PackageDependencies.PackageDependenciesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.PackageDependencies.PackageDependenciesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.PackageDependencies.PackageDependenciesVector;\r
 import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
index 941c05acbe5feb1e891e5b1c652e6c3cb4d6baf6..c0e17aa4b4026f76aa90652399e962856127ed17 100644 (file)
@@ -38,13 +38,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Ppis.PpisIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Ppis.PpisVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Ppis.PpisIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Ppis.PpisVector;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
index e591292883c4fefee225b8286303112041c32805..6c09aa19090b1fcfaa9c8ffdabe7914cb33a61aa 100644 (file)
@@ -39,13 +39,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Protocols.ProtocolsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Protocols.ProtocolsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Protocols.ProtocolsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Protocols.ProtocolsVector;\r
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
@@ -281,6 +281,7 @@ public class ModuleProtocols extends IInternalFrame {
             jComboBoxProtocolType.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
             jComboBoxProtocolType.setPreferredSize(new java.awt.Dimension(320, 20));\r
             jComboBoxProtocolType.addItemListener(this);\r
+            jComboBoxProtocolType.setToolTipText("Select Protocol Type");\r
         }\r
         return jComboBoxProtocolType;\r
     }\r
index 739fec0119c6dac89736adf9f2adf3007636e807..ec3c3b6bb7c40bb5d6b7a48f90f9ed915f7a3318 100644 (file)
@@ -37,13 +37,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.SourceFiles.SourceFilesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.SourceFiles.SourceFilesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.SourceFiles.SourceFilesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.SourceFiles.SourceFilesVector;\r
 import org.tianocore.frameworkwizard.workspace.Workspace;\r
 \r
 /**\r
index 64f1137b541e7713d95cde3a20881f6acb1f4479..3a32326455c89c4f002392371db3efd1aed6fdf9 100644 (file)
@@ -36,13 +36,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.SystemTables.SystemTablesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.SystemTables.SystemTablesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.SystemTables.SystemTablesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.SystemTables.SystemTablesVector;\r
 \r
 /**\r
  The class is used to create, update SystemTable of MSA/MBD file\r
@@ -131,6 +131,7 @@ public class ModuleSystemTables extends IInternalFrame {
             jTextFieldGuidC_Name = new JTextField();\r
             jTextFieldGuidC_Name.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
             jTextFieldGuidC_Name.setPreferredSize(new java.awt.Dimension(320,20));\r
+            jTextFieldGuidC_Name.setToolTipText("Enter the C Name of the System Table");\r
         }\r
         return jTextFieldGuidC_Name;\r
     }\r
index 2b56122f13e4fbe55482bc766401497544a5623c..1335694fb8273d855ba7bff1c72b1e6f986fb88b 100644 (file)
@@ -37,13 +37,13 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Variables.VariablesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Variables.VariablesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesVector;\r
 \r
 /**\r
  The class is used to create, update Variable of MSA/MBD file\r
@@ -135,6 +135,7 @@ public class ModuleVariables extends IInternalFrame {
             jTextFieldVariableName.setSize(new java.awt.Dimension(320, 20));\r
             jTextFieldVariableName.setPreferredSize(new java.awt.Dimension(320, 20));\r
             jTextFieldVariableName.setLocation(new java.awt.Point(160, 10));\r
+            jTextFieldVariableName.setToolTipText("Enter a Hex Word Array, you must provide leading Zeros. 0x000a, 0x0010, ¡­");\r
         }\r
         return jTextFieldVariableName;\r
     }\r
@@ -274,6 +275,7 @@ public class ModuleVariables extends IInternalFrame {
             jTextFieldGuidC_Name = new JTextField();\r
             jTextFieldGuidC_Name.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
             jTextFieldGuidC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+            jTextFieldGuidC_Name.setToolTipText("Enter the C Name for the Variable Guid");\r
         }\r
         return jTextFieldGuidC_Name;\r
     }\r
index c4576a8327bedc85ab024f63bcf8af0b5aa5cb68..11e1aa89c9adef7a131532f56af4fdba8d4c35d1 100644 (file)
@@ -35,8 +35,8 @@ import org.tianocore.frameworkwizard.common.DataType;
 import org.tianocore.frameworkwizard.common.DataValidation;\r
 import org.tianocore.frameworkwizard.common.EnumerationData;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
 import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
 import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
 \r
index 3599621ac6702c1e8f36bc3934863b143f6e46bc..7604a5f27a69875ce57483a513d49b74af14623f 100644 (file)
@@ -16,7 +16,7 @@
 package org.tianocore.frameworkwizard.packaging;\r
 import java.io.File;\r
 \r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
 \r
 public class PackageIdentification extends Identification{\r
     \r
index 11212818cc7eec90f874f50ff86a47daeb6a44d0..01387223a383866e988a76521e4e35bd4263f780 100644 (file)
@@ -17,7 +17,7 @@ package org.tianocore.frameworkwizard.platform;
 \r
 import java.io.File;\r
 \r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
 \r
 public class PlatformIdentification extends Identification{\r
     \r
index c6432ac284ab4902f34b38ce3033fb71e5f4ea1b..73fba9a86140a8082b2c2758a1f95119d8592a3e 100644 (file)
@@ -26,14 +26,15 @@ import org.tianocore.MsaHeaderDocument.MsaHeader;
 import org.tianocore.PackageSurfaceAreaDocument.PackageSurfaceArea;\r
 import org.tianocore.PlatformHeaderDocument.PlatformHeader;\r
 import org.tianocore.PlatformSurfaceAreaDocument.PlatformSurfaceArea;\r
+import org.tianocore.SourceFilesDocument.SourceFiles;\r
 import org.tianocore.SpdHeaderDocument.SpdHeader;\r
 import org.tianocore.frameworkwizard.common.DataType;\r
-import org.tianocore.frameworkwizard.common.Identification;\r
 import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpenFile;\r
 import org.tianocore.frameworkwizard.common.SaveFile;\r
 import org.tianocore.frameworkwizard.common.Tools;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
 import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
 import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
 \r
@@ -80,7 +81,10 @@ public class WorkspaceTools {
             MsaFiles files = OpenFile.openSpdFile(path).getMsaFiles();\r
             if (files != null) {\r
                 for (int index = 0; index < files.getFilenameList().size(); index++) {\r
-                    modulePath.addElement(files.getFilenameList().get(index));\r
+                    String msaPath = files.getFilenameList().get(index);\r
+                    msaPath = Tools.addFileSeparator(Tools.getFilePathOnly(path)) + msaPath;\r
+                    msaPath = Tools.convertPathToCurrentOsType(msaPath);\r
+                    modulePath.addElement(msaPath);\r
                 }\r
             }\r
         } catch (IOException e) {\r
@@ -149,11 +153,10 @@ public class WorkspaceTools {
         for (int indexI = 0; indexI < vPackageList.size(); indexI++) {\r
             packagePath = vPackageList.elementAt(indexI).getPath();\r
             modulePaths = this.getAllModulesOfPackage(packagePath);\r
-            packagePath = packagePath.substring(0, packagePath.lastIndexOf(DataType.FILE_SEPARATOR)\r
-                                                   + DataType.FILE_SEPARATOR.length());\r
+            \r
             for (int indexJ = 0; indexJ < modulePaths.size(); indexJ++) {\r
-                modulePath = Tools.convertPathToCurrentOsType(packagePath + modulePaths.elementAt(indexJ));\r
                 try {\r
+                    modulePath = modulePaths.get(indexJ);\r
                     id = getId(modulePath, OpenFile.openMsaFile(modulePath));\r
                     vModuleList.addElement(new ModuleIdentification(id, vPackageList.elementAt(indexI)));\r
                 } catch (IOException e) {\r
@@ -251,7 +254,7 @@ public class WorkspaceTools {
                 for (int index = 0; index < spd.getPpiDeclarations().getEntryList().size(); index++) {\r
                     vector.addElement(spd.getPpiDeclarations().getEntryList().get(index).getCName());\r
                 }\r
-            }    \r
+            }\r
         }\r
         return vector;\r
     }\r
@@ -268,7 +271,7 @@ public class WorkspaceTools {
                 for (int index = 0; index < spd.getGuidDeclarations().getEntryList().size(); index++) {\r
                     vector.addElement(spd.getGuidDeclarations().getEntryList().get(index).getCName());\r
                 }\r
-            }    \r
+            }\r
         }\r
         return vector;\r
     }\r
@@ -285,7 +288,7 @@ public class WorkspaceTools {
                 for (int index = 0; index < spd.getPcdDeclarations().getPcdEntryList().size(); index++) {\r
                     vector.addElement(spd.getPcdDeclarations().getPcdEntryList().get(index).getCName());\r
                 }\r
-            }            \r
+            }\r
         }\r
         return vector;\r
     }\r
@@ -452,10 +455,8 @@ public class WorkspaceTools {
         for (int indexI = 0; indexI < vPackageList.size(); indexI++) {\r
             packagePath = vPackageList.elementAt(indexI).getPath();\r
             modulePaths = this.getAllModulesOfPackage(packagePath);\r
-            packagePath = packagePath.substring(0, packagePath.lastIndexOf(DataType.FILE_SEPARATOR)\r
-                                                   + DataType.FILE_SEPARATOR.length());\r
             for (int indexJ = 0; indexJ < modulePaths.size(); indexJ++) {\r
-                modulePath = Tools.convertPathToCurrentOsType(packagePath + modulePaths.elementAt(indexJ));\r
+                modulePath = modulePaths.get(indexJ);\r
                 try {\r
                     mid = getId(modulePath, OpenFile.openMsaFile(modulePath));\r
                     //\r
@@ -571,4 +572,70 @@ public class WorkspaceTools {
         strFrameworkDbFilePath = Tools.convertPathToCurrentOsType(strFrameworkDbFilePath);\r
         SaveFile.saveDbFile(strFrameworkDbFilePath, fdb);\r
     }\r
+\r
+    /**\r
+     Get all file's path from one module\r
+     \r
+     @param path\r
+     @return\r
+     @throws IOException\r
+     @throws XmlException\r
+     @throws Exception\r
+     \r
+     **/\r
+    public Vector<String> getAllModuleFiles(String path) throws IOException, XmlException, Exception {\r
+        Vector<String> v = new Vector<String>();\r
+        path = Tools.convertPathToCurrentOsType(path);\r
+        v.addElement(path);\r
+        ModuleSurfaceArea msa = OpenFile.openMsaFile(path);\r
+        if (msa != null) {\r
+            //\r
+            // Get all files' path of a module\r
+            //\r
+            SourceFiles sf = msa.getSourceFiles();\r
+            if (sf != null) {\r
+                for (int index = 0; index < sf.getFilenameList().size(); index++) {\r
+                    String temp = sf.getFilenameList().get(index).getStringValue();\r
+                    temp = Tools.addFileSeparator(Tools.getFilePathOnly(path)) + temp;\r
+                    v.addElement(Tools.convertPathToCurrentOsType(temp));\r
+                }\r
+            }\r
+        }\r
+\r
+        return v;\r
+    }\r
+\r
+    /**\r
+     Get all file's path from one package\r
+     \r
+     @param path\r
+     @return\r
+     @throws IOException\r
+     @throws XmlException\r
+     @throws Exception\r
+     \r
+     **/\r
+    public Vector<String> getAllPakcageFiles(String path) throws IOException, XmlException, Exception {\r
+        Vector<String> v = new Vector<String>();\r
+        path = Tools.convertPathToCurrentOsType(path);\r
+        //\r
+        // First add package\r
+        //\r
+        v.addElement(path);\r
+        \r
+        //\r
+        // Add module's files one by one\r
+        //\r
+        Vector<String> f1 = new Vector<String>();\r
+        f1 = getAllModulesOfPackage(path);\r
+        for (int indexI = 0; indexI < f1.size(); indexI++) {\r
+            Vector<String> f2 = getAllModuleFiles(f1.get(indexI));\r
+            for (int indexJ = 0; indexJ < f2.size(); indexJ++) {\r
+                v.addElement(f2.get(indexJ));\r
+            }\r
+        }\r
+        //v.add(0, path);\r
+\r
+        return v;\r
+    }\r
 }\r