]> git.proxmox.com Git - mirror_edk2.git/commitdiff
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@22 6f19259b...
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 25 Apr 2006 04:15:33 +0000 (04:15 +0000)
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 25 Apr 2006 04:15:33 +0000 (04:15 +0000)
Tools/Source/PackageEditor/src/org/tianocore/packaging/UpdateLibraryClass.java
Tools/Source/PackageEditor/src/org/tianocore/packaging/UpdateMsaFile.java
Tools/Source/PackageEditor/src/org/tianocore/packaging/UpdatePCD.java
Tools/Source/PackageEditor/src/org/tianocore/packaging/UpdatePkgHeader.java
Tools/Source/PackageEditor/src/org/tianocore/packaging/UpdatePpi.java
Tools/Source/PackageEditor/src/org/tianocore/packaging/UpdateProtocols.java

index 8abca63b7f78b2a87381d293ccf434092259d8e1..8e796d48f142c859b1b3b2eb718645a36cba8b70 100644 (file)
@@ -155,6 +155,9 @@ public class UpdateLibraryClass extends JFrame implements ActionListener {
     Remove original library classes before saving updated ones\r
     **/\r
     protected void save() {\r
+        if (jTable.isEditing()) {\r
+            jTable.getCellEditor().stopCellEditing();\r
+        }\r
         sfc.removeSpdLibClass();\r
         int rowCount = model.getRowCount();\r
         int i = 0;\r
index d06b24fdaed9aad0fb501d0a42f2ba4873cb4265..c6fc235015d7102cc7a0cb84acf76d854e9d400d 100644 (file)
@@ -152,7 +152,9 @@ public class UpdateMsaFile extends JFrame implements ActionListener {
     Remove original Msa files before saving updated ones\r
     **/\r
     protected void save() {\r
-\r
+        if (jTable.isEditing()) {\r
+            jTable.getCellEditor().stopCellEditing();\r
+        }\r
         sfc.removeSpdMsaFile();\r
         int rowCount = jTable.getRowCount();\r
         int i = 0;\r
index 61b48d4aa536a5e20e1dd099c93023083f1ea836..44d8970dc6023da257adef5f9f1f25ae1c05b4cb 100644 (file)
@@ -115,6 +115,9 @@ public class UpdatePCD extends JFrame implements ActionListener {
     Remove original Pcd definitions before saving updated ones\r
     **/\r
     protected void save() {\r
+        if (jTable.isEditing()) {\r
+            jTable.getCellEditor().stopCellEditing();\r
+        }\r
         sfc.removeSpdPcdDefinition();\r
         int rowCount = model.getRowCount();\r
         int i = 0;\r
index cccc323ee8cb57c476f0451dee50b2171064b74b..77c8ff56421bf92ef776938a31a6397da29ae2f7 100644 (file)
@@ -174,6 +174,9 @@ public class UpdatePkgHeader extends JFrame implements ActionListener {
     Remove original package headers before saving updated ones\r
     **/\r
     protected void save() {\r
+        if (jTable.isEditing()) {\r
+            jTable.getCellEditor().stopCellEditing();\r
+        }\r
         sfc.removeSpdPkgHeader();\r
         int rowCount = model.getRowCount();\r
         int i = 0;\r
index da1dc686fdc7f6e8fe4cf1ee8efcf3d0c8624380..17fb13f428081fb6610283a249818a650079650c 100644 (file)
@@ -156,6 +156,9 @@ public class UpdatePpi extends JFrame implements ActionListener {
     Remove original ppi declarations before saving updated ones\r
     **/\r
     protected void save() {\r
+        if (jTable.isEditing()) {\r
+            jTable.getCellEditor().stopCellEditing();\r
+        }\r
         sfc.removeSpdPpiDeclaration();\r
         int rowCount = model.getRowCount();\r
         int i = 0;\r
index 614cf82d60c3df19d382888a586008df1c35e20c..552186752be3ec4c112e1215e98c48c46e50deb0 100644 (file)
@@ -156,6 +156,9 @@ public class UpdateProtocols extends JFrame implements ActionListener {
     Remove original protocol declarations before saving updated ones\r
     **/\r
     protected void save() {\r
+        if (jTable.isEditing()) {\r
+            jTable.getCellEditor().stopCellEditing();\r
+        }\r
         sfc.removeSpdProtocolDeclaration();\r
         int rowCount = model.getRowCount();\r
         int i = 0;\r