]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/PackageEditor/src/org/tianocore/packaging/PackagePpi.java
2 Java class PackagePpi is GUI for create Ppi definition elements of spd file.
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
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.
13 package org
.tianocore
.packaging
;
16 GUI derived from PackageProtocols class, override save() method
18 @since PackageEditor 1.0
20 public class PackagePpi
extends PackageProtocols
{
22 private SpdFileContents sfc
= null;
24 public PackagePpi(SpdFileContents sfc
) {
26 // TODO Auto-generated constructor stub
31 add ppi definitions from GUI to SpdFileContents object passed in.
33 protected void save() {
35 sfc
.genSpdPpiDeclarations(getJTextField().getText(), getJTextFieldC_Name().getText(),
36 getJTextFieldGuid().getText(), null);
37 } catch (Exception e
) {
38 System
.out
.println(e
.toString());