jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1854713 - in /jmeter/trunk: src/core/org/apache/jmeter/gui/util/FileListPanel.java xdocs/changes.xml
Date Sun, 03 Mar 2019 13:51:48 GMT
Author: pmouawad
Date: Sun Mar  3 13:51:48 2019
New Revision: 1854713

URL: http://svn.apache.org/viewvc?rev=1854713&view=rev
Log:
Bug 62327 - TestPlan: In library table if path is modified and plan saved, the modification
is lost on file reload
Bugzilla Id: 62327

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileListPanel.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileListPanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileListPanel.java?rev=1854713&r1=1854712&r2=1854713&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileListPanel.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileListPanel.java Sun Mar  3 13:51:48
2019
@@ -40,6 +40,7 @@ import javax.swing.event.ChangeListener;
 import org.apache.jmeter.gui.GuiPackage;
 import org.apache.jmeter.gui.JMeterFileFilter;
 import org.apache.jmeter.util.JMeterUtils;
+import org.apache.jorphan.gui.GuiUtils;
 import org.apache.jorphan.gui.ObjectTableModel;
 import org.apache.jorphan.reflect.Functor;
 
@@ -162,11 +163,12 @@ public class FileListPanel extends JPane
     }
 
     public String[] getFiles() {
-        String[] _files = new String[tableModel.getRowCount()];
-        for (int idx=0; idx < _files.length; idx++) {
-            _files[idx] = (String)tableModel.getValueAt(idx,0);
+        GuiUtils.stopTableEditing(files);
+        String[] filesArray = new String[tableModel.getRowCount()];
+        for (int idx=0; idx < filesArray.length; idx++) {
+            filesArray[idx] = (String)tableModel.getValueAt(idx,0);
         }
-        return _files;
+        return filesArray;
     }
 
     protected void deleteFile() {

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1854713&r1=1854712&r2=1854713&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Sun Mar  3 13:51:48 2019
@@ -148,6 +148,7 @@ Summary
 <h3>Timers, Assertions, Config, Pre- &amp; Post-Processors</h3>
 <ul>
     <li><bug>62446</bug>Counter documentation is wrong in required fieds.
Contributed by orimarko at gmail.com</li>
+    <li><bug>62327</bug>TestPlan: In library table if path is modified
and plan saved, the modification is lost on file reload</li>
 </ul>
 
 <h3>Functions</h3>



Mime
View raw message