jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milam...@apache.org
Subject svn commit: r1513748 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java
Date Wed, 14 Aug 2013 07:30:14 GMT
Author: milamber
Date: Wed Aug 14 07:30:13 2013
New Revision: 1513748

URL: http://svn.apache.org/r1513748
Log:
Improve UI inter-action with Embedded Resources checkbox and URLs matching text field

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java?rev=1513748&r1=1513747&r2=1513748&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java
Wed Aug 14 07:30:13 2013
@@ -66,6 +66,8 @@ public class HttpTestSampleGui extends A
 
     private JCheckBox useMD5;
 
+    private JLabel labelEmbeddedRE = new JLabel(JMeterUtils.getResString("web_testing_embedded_url_pattern"));
// $NON-NLS-1$
+
     private JTextField embeddedRE; // regular expression used to match against embedded resource
URLs
 
     private JTextField sourceIpAddr; // does not apply to Java implementation
@@ -204,9 +206,8 @@ public class HttpTestSampleGui extends A
         embeddedRsrcPanel.add(checkBoxPanel);
 
         // Embedded URL match regex
-        JLabel lblEmbRE = new JLabel(JMeterUtils.getResString("web_testing_embedded_url_pattern"));
// $NON-NLS-1$
-        lblEmbRE.setFont(FONT_SMALL);
-        checkBoxPanel.add(lblEmbRE);
+        labelEmbeddedRE.setFont(FONT_SMALL);
+        checkBoxPanel.add(labelEmbeddedRE);
         embeddedRE = new JTextField(10);
         checkBoxPanel.add(embeddedRE);
         embeddedRsrcPanel.add(checkBoxPanel);
@@ -281,12 +282,16 @@ public class HttpTestSampleGui extends A
     private void enableConcurrentDwn(boolean enable) {
         if (enable) {
             concurrentDwn.setEnabled(true);
+            labelEmbeddedRE.setEnabled(true);
+            embeddedRE.setEnabled(true);
             if (concurrentDwn.isSelected()) {
                 concurrentPool.setEnabled(true);
             }
         } else {
             concurrentDwn.setEnabled(false);
             concurrentPool.setEnabled(false);
+            labelEmbeddedRE.setEnabled(false);
+            embeddedRE.setEnabled(false);
         }
     }
 



Mime
View raw message