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
This commit is contained in:
hche10x 2006-10-18 07:01:35 +00:00
parent 350785ff49
commit 01022d98b3
1 changed files with 21 additions and 0 deletions

View File

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