This is an automated email from the ASF dual-hosted git repository. mbien pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 0b66442 fix for #3737: BasicSearchForm should not select first entry by default. new 49e167e Merge pull request #3739 from mbien/modify-criteria-fix 0b66442 is described below commit 0b66442b83e0a65560838ab644b0f1a16bd58b49 Author: Michael Bien <mbie...@gmail.com> AuthorDate: Wed Mar 9 14:27:18 2022 +0100 fix for #3737: BasicSearchForm should not select first entry by default. --- platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java | 1 - 1 file changed, 1 deletion(-) diff --git a/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java b/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java index 8cc87b6..ed0879e 100644 --- a/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java +++ b/platform/api.search/src/org/netbeans/modules/search/BasicSearchForm.java @@ -366,7 +366,6 @@ final class BasicSearchForm extends JPanel implements ChangeListener, private void initValuesFromCriteria(BasicSearchCriteria initialCriteria, boolean searchAndReplace) { cboxTextToFind.setSearchPattern(initialCriteria.getSearchPattern()); - cboxTextToFind.getComponent().setSelectedIndex(0); if (cboxReplacement != null) { cboxReplacement.setSelectedItem(new ReplaceModelItem( ReplacePattern.create(initialCriteria.getReplaceExpr(), --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists