[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:22 -0800

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

diffstat:

 editor.lib2/src/org/netbeans/modules/editor/lib2/ComponentUtils.java |  4 
++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (35 lines):

diff --git 
a/editor.lib2/src/org/netbeans/modules/editor/lib2/ComponentUtils.java 
b/editor.lib2/src/org/netbeans/modules/editor/lib2/ComponentUtils.java
--- a/editor.lib2/src/org/netbeans/modules/editor/lib2/ComponentUtils.java
+++ b/editor.lib2/src/org/netbeans/modules/editor/lib2/ComponentUtils.java
@@ -61,6 +61,7 @@
 public final class ComponentUtils {
 
     private static final Logger LOG = 
Logger.getLogger(Logger.class.getName());
+    private static final String STATUS_BAR_TEXT_PROPERTY = "statusBarText";
     
     public static boolean isGuardedException(BadLocationException exc) {
         return 
exc.getClass().getName().equals("org.netbeans.editor.GuardedException");
@@ -90,6 +91,7 @@
         try {
             Object editorUI = getEditorUI(c);
             if (editorUI == null) {
+                c.putClientProperty(STATUS_BAR_TEXT_PROPERTY, text);
                 return;
             }
             Method getSbMethod = 
editorUI.getClass().getMethod("getStatusBar");
@@ -110,6 +112,7 @@
         try {
             Object editorUI = getEditorUI(c);
             if (editorUI == null) {
+                c.putClientProperty(STATUS_BAR_TEXT_PROPERTY, text);
                 return;
             }
             Method getSbMethod = 
editorUI.getClass().getMethod("getStatusBar");
@@ -146,6 +149,7 @@
         try {
             Object editorUI = getEditorUI(c);
             if (editorUI == null) {
+                c.putClientProperty(STATUS_BAR_TEXT_PROPERTY, text);
                 return;
             }
             Method getSbMethod = 
editorUI.getClass().getMethod("getStatusBar"); //NOI18N

[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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close