[hg] main-silver: #232989 - CTRL+F3 doesn't change search combob...

  • From: Milutin Kristofic < >
  • To:
  • Subject: [hg] main-silver: #232989 - CTRL+F3 doesn't change search combob...
  • Date: Thu, 18 Jul 2013 15:52:49 -0700

changeset 995d0be46d6f in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/995d0be46d6f
description:
        #232989 - CTRL+F3 doesn't change search combobox when searchbar is 
open

diffstat:

 editor.search/src/org/netbeans/modules/editor/search/SearchBar.java |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff --git 
a/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java 
b/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java
--- a/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java
+++ b/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java
@@ -363,6 +363,9 @@
                         SearchPattern sp = 
SearchPattern.create(spw.getSearchExpression(),
                                 spw.isWholeWords(), spw.isMatchCase(), 
spw.isRegExp());
                         SearchHistory.getDefault().add(sp);
+                        if 
(!SearchBar.getInstance().incSearchTextField.getText().equals(sp.getSearchExpression()))
 {
+                            
SearchBar.getInstance().incSearchTextField.setText(sp.getSearchExpression());
+                        }
                         break;
                     case EditorFindSupport.FIND_HISTORY_CHANGED_PROP:
                         EditorFindSupport.getInstance().setHistory(

[hg] main-silver: #232989 - CTRL+F3 doesn't change search combob...

Milutin Kristofic 07/18/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close