psmith      2003/09/15 15:20:58

  Modified:    src/java/org/apache/log4j/chainsaw LoggerNameTreePanel.java
  Log:
  Made the Ignore menu/action names more consistent
  with the way Focus on works, by changing the display
  name as the user selects different loggers in the tree.
  
  Revision  Changes    Path
  1.11      +5 -2      
jakarta-log4j/src/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
  
  Index: LoggerNameTreePanel.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- LoggerNameTreePanel.java  15 Sep 2003 22:13:26 -0000      1.10
  +++ LoggerNameTreePanel.java  15 Sep 2003 22:20:58 -0000      1.11
  @@ -471,7 +471,7 @@
   
             collapseAction.setEnabled(path != null);
   
  -          reconfigureFocusOnText();
  +          reconfigureMenuText();
           }
         });
   
  @@ -517,17 +517,20 @@
         });
     }
   
  -  private void reconfigureFocusOnText() {
  +  private void reconfigureMenuText() {
       String logger = getCurrentlySelectedLoggerName();
   
       if ((logger == null) || (logger.length() == 0)) {
         focusOnAction.putValue(Action.NAME, "Focus On...");
  +       hideAction.putValue(Action.NAME, "Ignore ...");
       } else {
         focusOnAction.putValue(Action.NAME, "Focus On '" + logger + "'");
  +      hideAction.putValue(Action.NAME, "Ignore '" + logger + "'");
       }
   
       // need to ensure the button doens't update itself with the text, looks stupid 
otherwise
       focusOnLoggerButton.setText(null);
  +    ignoreLoggerButton.setText(null);
     }
   
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to