]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/PackageEditor/src/org/tianocore/packaging/PackagePpi.java
Initial import.
[mirror_edk2.git] / Tools / Source / PackageEditor / src / org / tianocore / packaging / PackagePpi.java
1 /** @file
2 Java class PackagePpi is GUI for create Ppi definition elements of spd file.
3
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 **/
13 package org.tianocore.packaging;
14
15 /**
16 GUI derived from PackageProtocols class, override save() method
17
18 @since PackageEditor 1.0
19 **/
20 public class PackagePpi extends PackageProtocols {
21
22 private SpdFileContents sfc = null;
23
24 public PackagePpi(SpdFileContents sfc) {
25 super(sfc);
26 // TODO Auto-generated constructor stub
27 this.sfc = sfc;
28 }
29
30 /**
31 add ppi definitions from GUI to SpdFileContents object passed in.
32 **/
33 protected void save() {
34 try {
35 sfc.genSpdPpiDeclarations(getJTextField().getText(), getJTextFieldC_Name().getText(),
36 getJTextFieldGuid().getText(), null);
37 } catch (Exception e) {
38 System.out.println(e.toString());
39 }
40 }
41 }