jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1806732 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Date Wed, 30 Aug 2017 20:14:06 GMT
Author: pmouawad
Date: Wed Aug 30 20:14:06 2017
New Revision: 1806732

URL: http://svn.apache.org/viewvc?rev=1806732&view=rev
Log:
Bug 61473 - View Results Tree : Switching the Renderer shows empty Sampler Result
Bugzilla Id: 61473

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java?rev=1806732&r1=1806731&r2=1806732&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Wed Aug 30 20:14:06 2017
@@ -378,13 +378,21 @@ implements ActionListener, TreeSelection
     /** {@inheritDoc} */
     @Override
     public void valueChanged(TreeSelectionEvent e) {
+        valueChanged(e, false);
+    }
+
+    /**
+     * @param e {@link TreeSelectionEvent}
+     * @param forceRendering boolean
+     */
+    private void valueChanged(TreeSelectionEvent e, boolean forceRendering) {
         lastSelectionEvent = e;
         DefaultMutableTreeNode node;
         synchronized (this) {
             node = (DefaultMutableTreeNode) jTree.getLastSelectedPathComponent();
         }
 
-        if (node != null && node.getUserObject() != resultsObject) {
+        if (node != null && (forceRendering || node.getUserObject() != resultsObject))
{
             resultsObject = node.getUserObject();
             // to restore last tab used
             if (rightSide.getTabCount() > selectedTab) {
@@ -525,7 +533,7 @@ implements ActionListener, TreeSelection
                     log.debug("selectedTab={}", selectedTab);
                     resultsRender.init();
                     // To display current sampler result before change
-                    this.valueChanged(lastSelectionEvent);
+                    this.valueChanged(lastSelectionEvent, true);
                 }
             }
         }



Mime
View raw message