logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/chainsaw ChainsawCyclicBufferTableModel.java
Date Fri, 02 Jan 2004 06:28:03 GMT
sdeboy      2004/01/01 22:28:03

  Modified:    src/java/org/apache/log4j/chainsaw
                        ChainsawCyclicBufferTableModel.java
  Log:
  corrected small model change notification issue when cyclicbuffer was full
  
  Revision  Changes    Path
  1.17      +6 -2      logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
  
  Index: ChainsawCyclicBufferTableModel.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ChainsawCyclicBufferTableModel.java	1 Jan 2004 00:36:10 -0000	1.16
  +++ ChainsawCyclicBufferTableModel.java	2 Jan 2004 06:28:03 -0000	1.17
  @@ -396,7 +396,7 @@
   
       case ChainsawColumns.INDEX_METHOD_COL_NAME:
         return (info == null) ? "" : info.getMethodName();
  -
  +    
       default:
   
         if (columnIndex <= columnNames.size()) {
  @@ -428,7 +428,11 @@
       if ((displayRule == null) || (displayRule.evaluate(e))) {
         synchronized (filteredList) {
           filteredList.add(e);
  -        fireTableRowsInserted(filteredList.size(),filteredList.size());
  +        if (filteredList.size() < capacity) {
  +            fireTableRowsInserted(filteredList.size(), filteredList.size());
  +        } else {
  +            fireTableDataChanged();
  +        }
         }
       }
   
  
  
  

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


Mime
View raw message