\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
- private File fpdFile;\r
- \r
+\r
public PlatformIdentification(String name, String guid, String version, String path){\r
super(name, guid, version, path);\r
}\r
\r
- public PlatformIdentification(String name, String guid, String version, File fpdFile){\r
- super(name, guid, version);\r
- this.fpdFile = fpdFile;\r
- }\r
- \r
public PlatformIdentification(Identification id){\r
super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
}\r
\r
- public String toString(){\r
- return "Platform " + this.getName() + "[" + this.getGuid() + "]";\r
- }\r
-\r
- public void setFpdFile(File fpdFile) {\r
- this.fpdFile = fpdFile;\r
- }\r
-\r
- public File getFpdFile() {\r
- return fpdFile;\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