Author: sebb
Date: Tue May  6 11:54:24 2008
New Revision: 653883

URL: http://svn.apache.org/viewvc?rev=653883&view=rev
Log:
Extract createTestElement() GUI update code into modifyTestElement()
UrlConfigGui is used as both standalone and embedded for which the latter is 
needed.

Modified:
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java?rev=653883&r1=653882&r2=653883&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
 Tue May  6 11:54:24 2008
@@ -131,6 +131,16 @@
                ConfigTestElement element = new ConfigTestElement();
 
                this.configureTestElement(element);
+               modifyTestElement(element);
+               return element;
+    }
+
+       /**
+        * Save the GUI values in the sampler.
+        * 
+        * @param element
+        */
+    public void modifyTestElement(TestElement element) {
                Arguments args = (Arguments) argsPanel.createTestElement();
 
                HTTPArgument.convertArgumentsToHTTP(args);
@@ -147,7 +157,6 @@
                        element.setProperty(new 
BooleanProperty(HTTPSamplerBase.USE_KEEPALIVE, useKeepAlive.isSelected()));
                element.setProperty(new 
BooleanProperty(HTTPSamplerBase.DO_MULTIPART_POST, 
useMultipartForPost.isSelected()));
                }
-               return element;
        }
 
        /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to