]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java
1. Fix bug in get industry std headers
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / PlatformIdentification.java
1 /** @file
2
3 The file is used to save basic information of platform
4
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 package org.tianocore.frameworkwizard.platform;
17
18
19 import java.io.File;
20
21 import org.tianocore.frameworkwizard.common.Tools;
22 import org.tianocore.frameworkwizard.common.Identifications.Identification;
23 import org.tianocore.frameworkwizard.workspace.Workspace;
24
25 public class PlatformIdentification extends Identification{
26
27 public PlatformIdentification(String name, String guid, String version, String path){
28 super(name, guid, version, path);
29 }
30
31 public PlatformIdentification(Identification id){
32 super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());
33 }
34
35 public File getFpdFile(){
36 File fpdFile = new File(this.getPath());
37 return fpdFile;
38 }
39
40 public String toString() {
41 return getName() + " " + getVersion() + " [" + Tools.getRelativePath(getFpdFile().getPath(), Workspace.getCurrentWorkspace()) + "]";
42 }
43 }