diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-18 07:01:35 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-18 07:01:35 +0000 |
commit | 01022d98b31e5e6906d80dfe2b7795e1e1758082 (patch) | |
tree | f83ca14b7a689c175e4771f10b39fe5d30693f08 | |
parent | 350785ff491baca1aae325c5b4636cc998e2951e (diff) | |
download | edk2-platforms-01022d98b31e5e6906d80dfe2b7795e1e1758082.tar.xz |
1. Fix EDKT399: "RePackagable" attribute should be supported by clone operation
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1789 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/Clone.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/Clone.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/Clone.java index 6c9e25a31a..4643bb1e71 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/Clone.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/Clone.java @@ -380,6 +380,27 @@ public class Clone extends IDialog { .setToolTipText("<html>Input the package's relative path and file name, for example:<br>MdePkg\\MdePkg.spd</html>");
this.jTextFieldFilePath.setSize(320, this.jTextFieldFilePath.getSize().height);
this.jLabelDestinationFile.setText("New Package Path and Filename");
+
+ //
+ // Check if the package can be cloned
+ //
+ PackageSurfaceArea spd = GlobalData.openingPackageList
+ .getPackageSurfaceAreaFromId(GlobalData.openingPackageList
+ .getIdByPath(this.oldId
+ .getPath()));
+ if (spd != null) {
+ if (spd.getPackageDefinitions() != null) {
+ if (!spd.getPackageDefinitions().getRePackage()) {
+ Log.wrn("Clone Package", "This package can't repackaged and cloned");
+ this.jTextFieldBaseName.setEnabled(false);
+ this.jTextFieldFilePath.setEnabled(false);
+ this.jTextFieldGuid.setEnabled(false);
+ this.jTextFieldVersion.setEnabled(false);
+ this.jButtonGenerateGuid.setEnabled(false);
+ this.jButtonOk.setEnabled(false);
+ }
+ }
+ }
}
//
// For PLATFORM_SURFACE_AREA
|