jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1825823 - in /jmeter/trunk: src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java xdocs/changes.xml
Date Sun, 04 Mar 2018 16:34:38 GMT
Author: pmouawad
Date: Sun Mar  4 16:34:38 2018
New Revision: 1825823

URL: http://svn.apache.org/viewvc?rev=1825823&view=rev
Log:
Bug 62155 - Search Feature: Make Search text field get focus
Bugzilla Id: 62155

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java?rev=1825823&r1=1825822&r2=1825823&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java Sun Mar  4 16:34:38
2018
@@ -54,6 +54,7 @@ import org.apache.jmeter.gui.Replaceable
 import org.apache.jmeter.gui.Searchable;
 import org.apache.jmeter.gui.tree.JMeterTreeModel;
 import org.apache.jmeter.gui.tree.JMeterTreeNode;
+import org.apache.jmeter.gui.util.FocusRequester;
 import org.apache.jmeter.testelement.TestElement;
 import org.apache.jmeter.util.JMeterUtils;
 import org.apache.jorphan.gui.ComponentUtil;
@@ -331,4 +332,13 @@ public class SearchTreeDialog extends JD
 
         searchTF.requestFocusInWindow();
     }
+
+    /* (non-Javadoc)
+     * @see java.awt.Dialog#setVisible(boolean)
+     */
+    @Override
+    public void setVisible(boolean b) {
+        super.setVisible(b);
+        searchTF.requestFocusInWindow();
+    }
 }

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java?rev=1825823&r1=1825822&r2=1825823&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java Sun Mar  4 16:34:38
2018
@@ -269,4 +269,9 @@ public class JLabeledTextField extends J
             mChangeListener.stateChanged(ce);
         }
     }
+    
+    @Override
+    public boolean requestFocusInWindow() {
+        return mTextField.requestFocusInWindow();
+    }
 }

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1825823&r1=1825822&r2=1825823&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Sun Mar  4 16:34:38 2018
@@ -178,6 +178,7 @@ this behaviour, set <code>httpclient.res
   <li><pr>377</pr>Small fix of the docs. Contributed by Peter Doornbosch
(peter.doornbosch at luminis.eu)</li>
   <li><bug>62124</bug>Recording templates : Add more exclusions and use
Transaction Name by default</li>
   <li><bug>62127</bug>Store filename as String instead of File in FileEditor.
This will prevent conversion of filenames from unix style path separators to Windows style
when used for example in CSV Data Set Config.</li>
+  <li><bug>62155</bug>Search Feature: Make Search text field get focus</li>
 </ul>
 
  <!--  =================== Thanks =================== -->



Mime
View raw message