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 LogUI.java
Date Fri, 23 May 2003 01:22:20 GMT
psmith      2003/05/22 18:22:20

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  fixed issue where if a Tab was undocked, the main windows still 
  updated the currently selected line #
  
  Revision  Changes    Path
  1.72      +10 -7     jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java
  
  Index: LogUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- LogUI.java	23 May 2003 01:09:00 -0000	1.71
  +++ LogUI.java	23 May 2003 01:22:19 -0000	1.72
  @@ -1264,7 +1264,9 @@
                 (ListSelectionModel) evt.getSource();
   
               if (lsm.isSelectionEmpty()) {
  -              statusBar.setNothingSelected();
  +              if (getIdentifier().equals(getActiveTabName())) {
  +                statusBar.setNothingSelected();
  +              }
   
                 if (detail.getDocument().getDefaultRootElement() != null) {
                   synchronized (detail) {
  @@ -1275,8 +1277,11 @@
               } else {
                 if (table.getSelectedRow() > -1) {
                   int selectedRow = table.getSelectedRow();
  -                statusBar.setSelectedLine(
  -                  selectedRow + 1, table.getModel().getRowCount());
  +
  +                if (getIdentifier().equals(getActiveTabName())) {
  +                  statusBar.setSelectedLine(
  +                    selectedRow + 1, table.getModel().getRowCount());
  +                }
   
                   try {
                     if (tableModel.getRowCount() >= selectedRow) {
  @@ -1545,7 +1550,6 @@
         panelMap.put(ident, this);
         entryMap.put(ident, map);
   
  -	
         tableModel.addEventCountListener(
           new EventCountListener() {
             public void eventCountChanged(int currentCount, int totalCount) {
  @@ -1854,14 +1858,13 @@
       public void run() {
         while (true) {
           String text = null;
  -
           if (selectedRow != lastRow) {
             if (selectedRow == -1) {
               text = "Nothing selected";
  -            statusBar.setNothingSelected();
  +//            statusBar.setNothingSelected();
             } else {
               text = model.getDetailText(selectedRow);
  -            statusBar.setSelectedLine(selectedRow + 1, model.getRowCount());
  +//            statusBar.setSelectedLine(selectedRow + 1, model.getRowCount());
             }
   
             if (!((text != null) && !text.equals(""))) {
  
  
  

---------------------------------------------------------------------
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