bug fixing for SPD editor.
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 7 Jul 2006 08:52:34 +0000 (08:52 +0000)
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 7 Jul 2006 08:52:34 +0000 (08:52 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@820 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdGuidDecls.java
Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/ui/SpdPackageDefinitions.java

index bbb402a5775b0f5b1ffa5a32b1166d71e8d307c3..07ce0cef7fbf0895b875ffc5d11e94c4b55d3534 100644 (file)
@@ -514,8 +514,6 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{
      */\r
     public void actionPerformed(ActionEvent arg0) {\r
         \r
-        docConsole.setSaved(false);\r
-        \r
         if (arg0.getSource() == jButtonOk) {\r
             this.save();\r
             this.dispose();\r
@@ -549,6 +547,7 @@ public class SpdGuidDecls extends IInternalFrame implements TableModelListener{
             if (!dataValidation(row)) {\r
                 return;\r
             }\r
+            docConsole.setSaved(false);\r
             model.addRow(row);\r
             addRow(row);\r
         }\r
index 6d7c6d705f7f03d34506e72de4d811f07d3cb856..3d29cf6d9d4e740209757862c7efed3083233fa6 100644 (file)
@@ -128,7 +128,9 @@ public class SpdPackageDefinitions extends IInternalFrame {
             jComboBoxReadOnly.setSelectedIndex(1);\r
             jComboBoxReadOnly.addItemListener(new java.awt.event.ItemListener() {\r
                 public void itemStateChanged(java.awt.event.ItemEvent e) {\r
+                    if (docConsole != null) {\r
                     docConsole.setSaved(false);\r
+                    }\r
                     sfc.setSpdPkgDefsRdOnly(jComboBoxReadOnly.getSelectedItem()+"");\r
                 }\r
             });\r
@@ -151,7 +153,9 @@ public class SpdPackageDefinitions extends IInternalFrame {
             jComboBoxRePackage.setSelectedIndex(0);\r
             jComboBoxRePackage.addItemListener(new java.awt.event.ItemListener() {\r
                 public void itemStateChanged(java.awt.event.ItemEvent e) {\r
+                    if (docConsole != null) {\r
                     docConsole.setSaved(false);\r
+                    }\r
                     sfc.setSpdPkgDefsRePkg(jComboBoxRePackage.getSelectedItem()+"");\r
                 }\r
             });\r