<Filename>src/org/tianocore/frameworkwizard/common/IDefaultTableModel.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/IFileFilter.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/Log.java</Filename>\r
+ <Filename>src/org/tianocore/frameworkwizard/common/OpenFile.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/SaveFile.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/Sort.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/Tools.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/XmlConfig.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/Identifications/Identification.java</Filename>\r
- <Filename>src/org/tianocore/frameworkwizard/common/Identifications/OpenFile.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/Identifications/OpeningFileType.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleList.java</Filename>\r
<Filename>src/org/tianocore/frameworkwizard/common/Identifications/OpeningModuleType.java</Filename>\r
import org.tianocore.frameworkwizard.common.FileOperation;\r
import org.tianocore.frameworkwizard.common.IFileFilter;\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.Identifications.ModuleIdentification;\r
import org.tianocore.frameworkwizard.common.DataType;\r
import org.tianocore.frameworkwizard.common.IFileFilter;\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.Identifications.OpeningModuleList;\r
import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageList;\r
**/\r
private static final long serialVersionUID = 4171355136991448972L;\r
\r
- private JPanel jContentPane = null; // @jve:decl-index=0:visual-constraint="10,54"\r
+ private JPanel jContentPane = null;\r
\r
private JComboBox jComboBoxExistingPackage = null;\r
\r
private StarLabel jStarLabel4 = null;\r
\r
private StarLabel jStarLabel5 = null;\r
- \r
+\r
private ButtonGroup bg = new ButtonGroup();\r
\r
private WorkspaceTools wt = new WorkspaceTools();\r
private JRadioButton getJRadioButtonYes() {\r
if (jRadioButtonYes == null) {\r
jRadioButtonYes = new JRadioButton();\r
- jRadioButtonYes.setBounds(new java.awt.Rectangle(140,35,100,20));\r
- jRadioButtonYes.setSelected(true);\r
+ jRadioButtonYes.setBounds(new java.awt.Rectangle(140, 35, 100, 20));\r
+ jRadioButtonYes.setSelected(false);\r
jRadioButtonYes.setText("Yes");\r
}\r
return jRadioButtonYes;\r
private JRadioButton getJRadioButtonNo() {\r
if (jRadioButtonNo == null) {\r
jRadioButtonNo = new JRadioButton();\r
- jRadioButtonNo.setBounds(new java.awt.Rectangle(300,35,110,20));\r
- jRadioButtonNo.setSelected(false);\r
+ jRadioButtonNo.setBounds(new java.awt.Rectangle(300, 35, 110, 20));\r
+ jRadioButtonNo.setSelected(true);\r
jRadioButtonNo.setText("No");\r
}\r
return jRadioButtonNo;\r
private JPanel getJContentPane() {\r
if (jContentPane == null) {\r
jLabelIsLibrary = new JLabel();\r
- jLabelIsLibrary.setBounds(new java.awt.Rectangle(15,35,120,20));\r
+ jLabelIsLibrary.setBounds(new java.awt.Rectangle(15, 35, 120, 20));\r
jLabelIsLibrary.setText("Is a Library");\r
jLabelVersion = new JLabel();\r
jLabelVersion.setBounds(new java.awt.Rectangle(15, 135, 120, 20));\r
jLabelPackage.setText("Choose Package");\r
jContentPane = new JPanel();\r
jContentPane.setLayout(null);\r
- jContentPane.setSize(new java.awt.Dimension(490,198));\r
+ jContentPane.setSize(new java.awt.Dimension(490, 198));\r
jContentPane.add(getJComboBoxExistingPackage(), null);\r
jContentPane.add(getJButtonOk(), null);\r
jContentPane.add(getJButtonCancel(), null);\r
public void setPid(PackageIdentification pid) {\r
this.pid = pid;\r
}\r
- \r
+\r
private void upLocation(Component c, int size) {\r
c.setLocation(c.getLocation().x, c.getLocation().y - size);\r
}\r
+++ /dev/null
-/** @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
--- /dev/null
+/** @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;\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
+\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
import org.tianocore.PackageDependenciesDocument;\r
import org.tianocore.PackageSurfaceAreaDocument;\r
import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;\r
-import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
+import org.tianocore.frameworkwizard.common.OpenFile;\r
import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
import org.tianocore.LibraryClassDefinitionsDocument.LibraryClassDefinitions;\r
import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;\r
import org.tianocore.frameworkwizard.common.DataType;\r
+import org.tianocore.frameworkwizard.common.OpenFile;\r
import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
-import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
\r
public class ModuleIdentification extends Identification {\r
public Vector<String> toStringVector(int index) {\r
Vector<String> v = new Vector<String>();\r
v.addElement(getSourceFiles(index).getFilename());\r
+ v.addElement(getSourceFiles(index).getTagName());\r
+ v.addElement(getSourceFiles(index).getToolCode());\r
+ v.addElement(getSourceFiles(index).getToolChainFamily());\r
return v;\r
}\r
}\r
jTable.setRowHeight(20);\r
\r
model.addColumn("File Name");\r
+ model.addColumn("Tag Name");\r
+ model.addColumn("Tool Code");\r
+ model.addColumn("Tool Chain Family");\r
\r
jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
jTable.getSelectionModel().addListSelectionListener(this);\r
import org.tianocore.SpdHeaderDocument.SpdHeader;\r
import org.tianocore.frameworkwizard.common.DataType;\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.Sort;\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.far.FarHeader;\r
import org.tianocore.frameworkwizard.far.FarIdentification;\r
import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r