[hg] main-silver: #225196 - More flexible search and replace act...

  • From: Milutin Kristofic < >
  • To:
  • Subject: [hg] main-silver: #225196 - More flexible search and replace act...
  • Date: Thu, 28 Feb 2013 20:38:23 -0800

changeset e357bbe8ee32 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/e357bbe8ee32
description:
        #225196 - More flexible search and replace action - hidehiglightIcon

diffstat:

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

diffs (16 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
@@ -1039,6 +1039,12 @@
         }
         actualTextComponent = new WeakReference<JTextComponent>(component);
         
EditorFindSupport.getInstance().setFocusedTextComponent(getActualTextComponent());
+        //This is for component without highlighting
+        if 
(Boolean.TRUE.equals(component.getClientProperty("searchbar.hideHighlightIcon")))
 { //NOI18N
+            highlight.setVisible(false);
+        } else if (!highlight.isVisible()) {
+            highlight.setVisible(true);
+        }
     }
 
     void addActualComponentListener(PropertyChangeListener 
propertyChangeListener) {

[hg] main-silver: #225196 - More flexible search and replace act...

Milutin Kristofic 03/01/2013

<Possible follow-up(s)>

[hg] main-silver: #225196 - More flexible search and replace act...

Milutin Kristofic 03/01/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 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close