From f46d7c213b49f97e68d6339aa9df3f70b15d9b59 Mon Sep 17 00:00:00 2001 From: jlin16 Date: Fri, 7 Jul 2006 08:52:34 +0000 Subject: bug fixing for SPD editor. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@820 6f19259b-4bc3-4df7-8a09-765794883524 --- .../src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java | 3 +-- .../tianocore/frameworkwizard/packaging/ui/SpdPackageDefinitions.java | 4 ++++ 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()+""); } }); -- cgit v1.2.3