\r
package org.tianocore.frameworkwizard.packaging;\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 PackageIdentification extends Identification{\r
\r
public PackageIdentification(Identification id){\r
super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
}\r
+ \r
+ public File getSpdFile(){\r
+ File spdFile = new File(this.getPath());\r
+ return spdFile;\r
+ }\r
+ \r
+ public String toString() {\r
+ return getName() + " " + getVersion() + " [" + Tools.getRelativePath(getSpdFile().getPath(), Workspace.getCurrentWorkspace()) + "]";\r
+ }\r
}\r