sdeboy      2004/06/22 00:00:44

  Modified:    src/java/org/apache/log4j/chainsaw LogPanel.java
               src/java/org/apache/log4j/chainsaw/help release-notes.html
  Log:
  Modified 'scroll to bottom' behavior:  Selecting the 'scroll to bottom' context menu 
now selects the bottom row.  Select any row other than the bottom row to deactivate 
scroll to bottom.
  
  Revision  Changes    Path
  1.78      +5 -3      logging-log4j/src/java/org/apache/log4j/chainsaw/LogPanel.java
  
  Index: LogPanel.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/LogPanel.java,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- LogPanel.java     22 Jun 2004 05:57:08 -0000      1.77
  +++ LogPanel.java     22 Jun 2004 07:00:43 -0000      1.78
  @@ -214,7 +214,6 @@
     private double lastLogTreePanelSplitLocation =
       DEFAULT_LOG_TREE_SPLIT_LOCATION;
     private boolean bypassScrollFind;
  -  private boolean bypassScrollSelection;
     private Point currentPoint;
     private boolean scroll;
     private boolean paused = false;
  @@ -722,7 +721,10 @@
             1: neither the 'firstindex' nor the 'lastindex' are on the last row, or
             2: the last index value didn't change and the 'lastindex' is on the last 
row, and the last index and first index aren't the same
              */ 
  -          bypassScrollSelection = (!(lastIndexOnLastRow || firstIndexOnLastRow)) || 
(lastIndexSame && lastIndexOnLastRow && (evt.getFirstIndex() != evt.getLastIndex()));
  +          boolean bypassScrollSelection = (!(lastIndexOnLastRow || 
firstIndexOnLastRow)) || (lastIndexSame && lastIndexOnLastRow && (evt.getFirstIndex() 
!= evt.getLastIndex()));
  +          if (bypassScrollSelection && scroll && table.getRowCount() > -1) {
  +             preferenceModel.setScrollToBottom(false);
  +          }
             previousLastIndex = evt.getLastIndex();
   
             final ListSelectionModel lsm = (ListSelectionModel) evt.getSource();
  @@ -1343,7 +1345,7 @@
         tableModel.fireTableEvent(
           first, tableModel.getLastAdded(), eventBatchEntrys.size());
   
  -      if (scroll && !bypassScrollFind && !bypassScrollSelection) {
  +      if (scroll && !bypassScrollFind) {
           table.scrollToBottom(
             table.columnAtPoint(table.getVisibleRect().getLocation()));
         }
  
  
  
  1.24      +5 -0      
logging-log4j/src/java/org/apache/log4j/chainsaw/help/release-notes.html
  
  Index: release-notes.html
  ===================================================================
  RCS file: 
/home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/help/release-notes.html,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- release-notes.html        20 Jun 2004 07:28:53 -0000      1.23
  +++ release-notes.html        22 Jun 2004 07:00:44 -0000      1.24
  @@ -9,6 +9,11 @@
   
   <h1>1.99.99</h2>
   
  +<h2>21 June 2004</h2>
  +<ul>
  + <li>Modified 'scroll to bottom' behavior:  Selecting the 'scroll to bottom' 
context menu now selects the bottom row.  Select any row other than the bottom row to 
deactivate scroll to bottom.</li>
  +</ul>
  +
   <h2>19 June 2004</h2>
   <ul>
    <li>Expression rule enhancement:  Added support for evaluating the Timestamp field 
using the pattern 'yyyy/MM/dd HH:mm:ss' (ticks required).  Milliseconds are ignored 
(rounded down) during the evaluation of events.  This is true for inequality and 
equality evaluations.</li>
  
  
  

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

Reply via email to