]> git.proxmox.com Git - mirror_edk2.git/blob - 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
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
28 public PlatformIdentification(String name, String guid, String version, String path){
29 super(name, guid, version, path);
30 }
31
32 public PlatformIdentification(Identification id){
33 super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());
34 }
35
36 public File getFpdFile(){
37 File fpdFile = new File(this.getPath());
38 return fpdFile;
39 }
40
41 public String toString() {
42 return getName() + " " + getVersion() + " [" + Tools.getRelativePath(getFpdFile().getPath(), Workspace.getCurrentWorkspace()) + "]";
43 }
44 }