jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1527102 - in /jmeter/trunk/src/protocol: java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java
Date Fri, 27 Sep 2013 22:11:00 GMT
Author: pmouawad
Date: Fri Sep 27 22:10:59 2013
New Revision: 1527102

URL: http://svn.apache.org/r1527102
Log:
Bug 55600 - JSyntaxTextArea : Strange behaviour on first undo
Bugzilla Id: 55600

Modified:
    jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java
    jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java

Modified: jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java?rev=1527102&r1=1527101&r2=1527102&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java
(original)
+++ jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java
Fri Sep 27 22:10:59 2013
@@ -53,7 +53,7 @@ public class BeanShellSamplerGui extends
 
     @Override
     public void configure(TestElement element) {
-        scriptField.setText(element.getPropertyAsString(BeanShellSampler.SCRIPT));
+        scriptField.setInitialText(element.getPropertyAsString(BeanShellSampler.SCRIPT));
         scriptField.setCaretPosition(0);
         filename.setText(element.getPropertyAsString(BeanShellSampler.FILENAME));
         parameters.setText(element.getPropertyAsString(BeanShellSampler.PARAMETERS));
@@ -92,7 +92,7 @@ public class BeanShellSamplerGui extends
 
         filename.setText(""); //$NON-NLS-1$
         parameters.setText(""); //$NON-NLS-1$
-        scriptField.setText(""); //$NON-NLS-1$
+        scriptField.setInitialText(""); //$NON-NLS-1$
         resetInterpreter.setSelected(false);
     }
 

Modified: jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java?rev=1527102&r1=1527101&r2=1527102&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java
(original)
+++ jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java
Fri Sep 27 22:10:59 2013
@@ -95,7 +95,7 @@ public class TCPConfigGui extends Abstra
         serverPanel.setConnectTimeout(element.getPropertyAsString(TCPSampler.TIMEOUT_CONNECT));
         setNoDelay.setTristateFromProperty(element, TCPSampler.NODELAY);
 //        setNoDelay.setSelected(element.getPropertyAsBoolean(TCPSampler.NODELAY));
-        requestData.setText(element.getPropertyAsString(TCPSampler.REQUEST));
+        requestData.setInitialText(element.getPropertyAsString(TCPSampler.REQUEST));
         requestData.setCaretPosition(0);
         closeConnection.setTristateFromProperty(element, TCPSampler.CLOSE_CONNECTION);
 //        closeConnection.setSelected(element.getPropertyAsBoolean(TCPSampler.CLOSE_CONNECTION,
TCPSampler.CLOSE_CONNECTION_DEFAULT));
@@ -144,7 +144,7 @@ public class TCPConfigGui extends Abstra
 
         serverPanel.clear();
         classname.setText(""); //$NON-NLS-1$
-        requestData.setText(""); //$NON-NLS-1$
+        requestData.setInitialText(""); //$NON-NLS-1$
         reUseConnection.setSelected(true);
         setNoDelay.setSelected(false); // TODO should this be indeterminate?
         closeConnection.setSelected(TCPSampler.CLOSE_CONNECTION_DEFAULT); // TODO should
this be indeterminate?



Mime
View raw message