1. Fix EDKT277 "ModuleType missing when creating a new Module"

2. Fix EDKT278 "Can NOT save file after generate a new GUID for a MSA"

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1555 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hche10x 2006-09-19 02:14:15 +00:00
parent 13bb49b1fb
commit d1760183fd
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.JTextField; import javax.swing.JTextField;
import org.tianocore.ModuleTypeDef;
import org.tianocore.MsaHeaderDocument; import org.tianocore.MsaHeaderDocument;
import org.tianocore.SpdHeaderDocument; import org.tianocore.SpdHeaderDocument;
import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea; import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;
@ -593,6 +594,7 @@ public class SelectModuleBelong extends IDialog {
msaHeader.setModuleName(this.jTextFieldName.getText()); msaHeader.setModuleName(this.jTextFieldName.getText());
msaHeader.setGuidValue(this.jTextFieldGuid.getText()); msaHeader.setGuidValue(this.jTextFieldGuid.getText());
msaHeader.setVersion(this.jTextFieldVersion.getText()); msaHeader.setVersion(this.jTextFieldVersion.getText());
msaHeader.setModuleType(ModuleTypeDef.BASE);
msa.setMsaHeader(msaHeader); msa.setMsaHeader(msaHeader);
} catch (Exception e) { } catch (Exception e) {

View File

@ -928,6 +928,8 @@ public class MsaHeader extends IInternalFrame {
} }
if (arg0.getSource() == jButtonGenerateGuid) { if (arg0.getSource() == jButtonGenerateGuid) {
jTextFieldGuid.setText(Tools.generateUuidString()); jTextFieldGuid.setText(Tools.generateUuidString());
jTextFieldGuid.requestFocus();
jButtonGenerateGuid.requestFocus();
} }
} }