]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/id/PlatformIdentification.java
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@671 6f19259b...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / id / PlatformIdentification.java
1 package org.tianocore.frameworkwizard.platform.ui.id;
2 import java.io.File;
3
4 import org.tianocore.frameworkwizard.platform.ui.global.GlobalData;
5
6 public class PlatformIdentification extends Identification{
7
8 private File fpdFile;
9
10 public PlatformIdentification(String name, String guid, String version){
11 super(name, guid, version);
12 }
13
14 public PlatformIdentification(String name, String guid, String version, String fpdFilename){
15 super(name, guid, version);
16 this.fpdFile = new File(fpdFilename);
17 }
18
19 public PlatformIdentification(String name, String guid, String version, File fpdFile){
20 super(name, guid, version);
21 this.fpdFile = fpdFile;
22 }
23
24 public String toString(){
25 return "Platform " + name + "["+guid+"]";
26 }
27
28 public void setFpdFile(File fpdFile) {
29 this.fpdFile = fpdFile;
30 }
31
32 public File getFpdFile() {
33 return fpdFile;
34 }
35
36 public String getPlatformRelativeDir(){
37 return fpdFile.getParent().substring(GlobalData.getWorkspacePath().length());
38 }
39 }