diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-30 05:26:27 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-30 05:26:27 +0000 |
commit | d8be5b148b2af02569338471562c861367363533 (patch) | |
tree | bf238fff9a89042c22833e51a05b6941b8735004 /Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform | |
parent | 92cfaeee663888d6b4c4c8fb180ba249d940b16c (diff) | |
download | edk2-platforms-d8be5b148b2af02569338471562c861367363533.tar.xz |
1. Fix EDKT457 Multiple FPD, MSA or SPD files in a directory is prohibited
2. Fix EDKT450 Please don't allow user to set same Guid in clone operation
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1855 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform')
-rw-r--r-- | Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java index 2fdbdd6d73..bc0b3d2bed 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java @@ -40,4 +40,22 @@ public class PlatformIdentification extends Identification{ public String toString() {
return getName() + " " + getVersion() + " [" + Tools.getRelativePath(getFpdFile().getPath(), Workspace.getCurrentWorkspace()) + "]";
}
+
+ public boolean equals(String platformGuid, String platformVersion) {
+ boolean b = false;
+ if (this.getGuid().equals(platformGuid)) {
+ b = true;
+ //
+ // Check Version
+ //
+ if (platformVersion != null) {
+ if (!Tools.isEmpty(platformVersion)) {
+ if (!platformVersion.equals(this.getVersion())) {
+ b = false;
+ }
+ }
+ }
+ }
+ return b;
+ }
}
\ No newline at end of file |