]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java
1. Support to Create/Update/Delete/Install far file
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / PlatformIdentification.java
index 0604dae95461a4640fb5e9f177f1510b308c33ad..ced7c921521bdfc792f3e29e37b59eacb2f239b6 100644 (file)
 \r
 package org.tianocore.frameworkwizard.platform;\r
 \r
+\r
+import java.io.File;\r
+\r
+import org.tianocore.frameworkwizard.common.Tools;\r
 import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.workspace.Workspace;\r
 \r
 public class PlatformIdentification extends Identification{\r
     \r
+    \r
     public PlatformIdentification(String name, String guid, String version, String path){\r
         super(name, guid, version, path);\r
     }\r
@@ -26,4 +32,13 @@ public class PlatformIdentification extends Identification{
     public PlatformIdentification(Identification id){\r
         super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
     }\r
+    \r
+    public File getFpdFile(){\r
+      File fpdFile = new File(this.getPath());\r
+      return fpdFile;\r
+  }\r
+    \r
+    public String toString() {\r
+      return getName() + " " + getVersion() + " [" + Tools.getRelativePath(getFpdFile().getPath(), Workspace.getCurrentWorkspace()) + "]";\r
+    }\r
 }
\ No newline at end of file