logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw ChainsawToolBarAndMenus.java
Date Tue, 06 May 2003 05:22:58 GMT
psmith      2003/05/05 22:22:58

  Modified:    src/java/org/apache/log4j/chainsaw
                        ChainsawToolBarAndMenus.java
  Log:
  if the user presses the Find next action, and there is no text in the find
  field, the focus is placed in the Find field.  F3 therefore becomes just a 
  "Find" when there is no text, and a "Find Next" if there is text.
  
  Revision  Changes    Path
  1.9       +6 -1      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java
  
  Index: ChainsawToolBarAndMenus.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ChainsawToolBarAndMenus.java	6 May 2003 04:01:02 -0000	1.8
  +++ ChainsawToolBarAndMenus.java	6 May 2003 05:22:58 -0000	1.9
  @@ -120,7 +120,12 @@
     private void find() {
       LogUI.LogPanel logPanel = logui.getCurrentLogPanel();
       if (logPanel!=null) {
  -      logPanel.find(findTextField.getText());
  +      if (!findTextField.getText().equals("")) {
  +        logPanel.find(findTextField.getText());  
  +      } else {
  +        findTextField.requestFocus();
  +      }
  +      
       }
   
     }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message