jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1514276 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
Date Thu, 15 Aug 2013 13:49:37 GMT
Author: sebb
Date: Thu Aug 15 13:49:36 2013
New Revision: 1514276

URL: http://svn.apache.org/r1514276
Log:
Use ClearGui interface method if it exists

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java?rev=1514276&r1=1514275&r2=1514276&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java Thu
Aug 15 13:49:36 2013
@@ -38,6 +38,7 @@ import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.SwingConstants;
 
+import org.apache.jmeter.gui.ClearGui;
 import org.apache.jmeter.util.JMeterUtils;
 import org.apache.jorphan.logging.LoggingManager;
 import org.apache.log.Logger;
@@ -746,7 +747,9 @@ public class GenericTestBeanCustomizer e
             PropertyEditor propertyEditor=editors[i]; // might be null (e.g. in testing)
             if (propertyEditor != null) {
                 try {
-                if (propertyEditor instanceof WrapperEditor){
+                if (propertyEditor instanceof ClearGui) {
+                    ((ClearGui) propertyEditor).clearGui();
+                } else if (propertyEditor instanceof WrapperEditor){
                     WrapperEditor we = (WrapperEditor) propertyEditor;
                     String tags[]=we.getTags();
                     if (tags != null && tags.length > 0) {



Mime
View raw message