\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
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