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