psmith      2004/05/13 19:44:58

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  If the HelpManager's help URL changes, we are already setting the url into the 
Welcome Panel,
  but the panel might not be visible, as the user might be looking at a Log panel, so 
if the url changes,
  we automatically bring the now displaying url to the front so the user can see it.
  
  Revision  Changes    Path
  1.92      +8 -0      logging-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java
  
  Index: LogUI.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- LogUI.java        13 May 2004 06:16:50 -0000      1.91
  +++ LogUI.java        14 May 2004 02:44:58 -0000      1.92
  @@ -420,11 +420,19 @@
   
             if (newURL != null) {
               welcomePanel.setURL(newURL);
  +            ensureWelcomePanelVisible();
             }
           }
         });
     }
   
  +  private void ensureWelcomePanelVisible() {
  +      // ensure that the Welcome Panel is made visible
  +      if(getTabbedPane().getSelectedComponent()!=welcomePanel) {
  +          
getTabbedPane().setSelectedIndex(getTabbedPane().indexOfComponent(welcomePanel));
  +      }
  +  }
  +  
     /**
      * Given the load event, configures the size/location of the main window etc
      * etc.
  
  
  

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

Reply via email to