jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1724607 - in /jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java xdocs/changes.xml
Date Thu, 14 Jan 2016 13:39:32 GMT
Author: pmouawad
Date: Thu Jan 14 13:39:32 2016
New Revision: 1724607

URL: http://svn.apache.org/viewvc?rev=1724607&view=rev
Log:
Bug 58857 - View Results Tree : the request view http does not allow to resize the parameters
table first column
#resolve #75
Bugzilla Id: 58857

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java?rev=1724607&r1=1724606&r2=1724607&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
Thu Jan 14 13:39:32 2016
@@ -327,23 +327,23 @@ public class RequestViewHTTP implements
         tableRequest.setToolTipText(JMeterUtils.getResString("textbox_tooltip_cell")); //
$NON-NLS-1$
         tableRequest.addMouseListener(new TextBoxDoubleClick(tableRequest));
         
-        setFirstColumnPreferredSize(tableRequest);
+        setFirstColumnPreferredAndMaxWidth(tableRequest);
         RendererUtils.applyRenderers(tableRequest, RENDERERS_REQUEST);
 
         // Set up the 2nd table 
         tableParams = new JTable(paramsModel);
         tableParams.setToolTipText(JMeterUtils.getResString("textbox_tooltip_cell")); //
$NON-NLS-1$
         tableParams.addMouseListener(new TextBoxDoubleClick(tableParams));
-        setFirstColumnPreferredSize(tableParams);
-        tableParams.getTableHeader().setDefaultRenderer(
-                new HeaderAsPropertyRenderer());
+        TableColumn column = tableParams.getColumnModel().getColumn(0);
+        column.setPreferredWidth(160);
+        tableParams.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer());
         RendererUtils.applyRenderers(tableParams, RENDERERS_PARAMS);
 
         // Set up the 3rd table 
         tableHeaders = new JTable(headersModel);
         tableHeaders.setToolTipText(JMeterUtils.getResString("textbox_tooltip_cell")); //
$NON-NLS-1$
         tableHeaders.addMouseListener(new TextBoxDoubleClick(tableHeaders));
-        setFirstColumnPreferredSize(tableHeaders);
+        setFirstColumnPreferredAndMaxWidth(tableHeaders);
         tableHeaders.getTableHeader().setDefaultRenderer(
                 new HeaderAsPropertyRenderer());
         RendererUtils.applyRenderers(tableHeaders, RENDERERS_HEADERS);
@@ -368,7 +368,7 @@ public class RequestViewHTTP implements
         return panel;
     }
 
-    private void setFirstColumnPreferredSize(JTable table) {
+    private void setFirstColumnPreferredAndMaxWidth(JTable table) {
         TableColumn column = table.getColumnModel().getColumn(0);
         column.setMaxWidth(300);
         column.setPreferredWidth(160);

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1724607&r1=1724606&r2=1724607&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Thu Jan 14 13:39:32 2016
@@ -126,6 +126,7 @@ Summary
 <li><bug>58776</bug>Summariser should display a more readable duration</li>
 <li><bug>58791</bug>Deprecate listeners:Distribution Graph (alpha) and
Spline Visualizer</li>
 <li><bug>58849</bug>View Results Tree : Add a search panel to the request
http view to be able to search in the parameters table. Contributed by Benoit Wiart (benoit
dot wiart at gmail.com)</li>
+<li><bug>58857</bug>View Results Tree : the request view http does not
allow to resize the parameters table first column. Contributed by Benoit Wiart (benoit dot
wiart at gmail.com)</li>
 </ul>
 
 <h3>Timers, Assertions, Config, Pre- &amp; Post-Processors</h3>



Mime
View raw message