jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1817421 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java
Date Thu, 07 Dec 2017 20:57:48 GMT
Author: pmouawad
Date: Thu Dec  7 20:57:48 2017
New Revision: 1817421

URL: http://svn.apache.org/viewvc?rev=1817421&view=rev
Log:
Make mock react correctly on setText/getText

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java?rev=1817421&r1=1817420&r2=1817421&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java Thu Dec  7 20:57:48
2017
@@ -82,6 +82,7 @@ public class JSyntaxTextArea extends RSy
             if ("true".equals(System.getProperty("java.awt.headless"))) { // $NON-NLS-1$
$NON-NLS-2$
                 return new JSyntaxTextArea(disableUndo) {
                     private static final long serialVersionUID = 1L;
+                    private String text;
                     @Override
                     protected void init() {
                         try {
@@ -98,7 +99,13 @@ public class JSyntaxTextArea extends RSy
                     @Override
                     public void discardAllEdits() { }
                     @Override
-                    public void setText(String t) { }
+                    public void setText(String t) {
+                        this.text = t;
+                    }
+                    @Override
+                    public String getText() {
+                        return text;
+                    }
                     @Override
                     public boolean isCodeFoldingEnabled(){ return true; }
                 };



Mime
View raw message