summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-07 08:52:34 +0000
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-07 08:52:34 +0000
commitf46d7c213b49f97e68d6339aa9df3f70b15d9b59 (patch)
tree634a69200c9896edc0ae8c0cf7048b29290bd2a6
parent8f4f211c8db9a1421c351fb237b6f8eee5967ac1 (diff)
downloadedk2-f46d7c213b49f97e68d6339aa9df3f70b15d9b59.tar.gz
edk2-f46d7c213b49f97e68d6339aa9df3f70b15d9b59.tar.bz2
edk2-f46d7c213b49f97e68d6339aa9df3f70b15d9b59.zip
bug fixing for SPD editor.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@820 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java3
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPackageDefinitions.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java
index bbb402a577..07ce0cef7f 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java
@@ -514,8 +514,6 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{
*/
public void actionPerformed(ActionEvent arg0) {
- docConsole.setSaved(false);
-
if (arg0.getSource() == jButtonOk) {
this.save();
this.dispose();
@@ -549,6 +547,7 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{
if (!dataValidation(row)) {
return;
}
+ docConsole.setSaved(false);
model.addRow(row);
addRow(row);
}
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPackageDefinitions.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPackageDefinitions.java
index 6d7c6d705f..3d29cf6d9d 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPackageDefinitions.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPackageDefinitions.java
@@ -128,7 +128,9 @@ public class SpdPackageDefinitions extends IInternalFrame {
jComboBoxReadOnly.setSelectedIndex(1);
jComboBoxReadOnly.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent e) {
+ if (docConsole != null) {
docConsole.setSaved(false);
+ }
sfc.setSpdPkgDefsRdOnly(jComboBoxReadOnly.getSelectedItem()+"");
}
});
@@ -151,7 +153,9 @@ public class SpdPackageDefinitions extends IInternalFrame {
jComboBoxRePackage.setSelectedIndex(0);
jComboBoxRePackage.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent e) {
+ if (docConsole != null) {
docConsole.setSaved(false);
+ }
sfc.setSpdPkgDefsRePkg(jComboBoxRePackage.getSelectedItem()+"");
}
});