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 ChainsawToolBarAndMenus.java
Date Mon, 05 May 2003 06:47:31 GMT
psmith      2003/05/04 23:47:31

  Modified:    src/java/org/apache/log4j/chainsaw
                        ChainsawToolBarAndMenus.java
  Log:
  Fixed very silly Pause action bug where A tab LOOKD paused, but wasn't.
  
  Revision  Changes    Path
  1.4       +7 -11     jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java
  
  Index: ChainsawToolBarAndMenus.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawToolBarAndMenus.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ChainsawToolBarAndMenus.java	5 May 2003 03:48:43 -0000	1.3
  +++ ChainsawToolBarAndMenus.java	5 May 2003 06:47:31 -0000	1.4
  @@ -146,23 +146,19 @@
   	
   	private Action createPauseAction() {
   		final Action pauseAction = new AbstractAction("Pause") {
  -			boolean paused = false;
   
   			public void actionPerformed(ActionEvent evt) {
  -			  paused = !paused;
  +			  
   			  LogUI.LogPanel logPanel = logui.getCurrentLogPanel();
   			  if(logPanel == null) return;
   			  String ident = logPanel.getIdentifier();
   			  System.out.println("trying to pause '" + ident + "'");
  -			  if (paused) {
  -				if (!logui.pausedList.contains(ident)) {
  -				  logui.pausedList.add(ident);
  -				}
  -			  } else {
  -				if (logui.pausedList.contains(ident)) {
  -				  logui.pausedList.remove(ident);
  -				}
  -			  }
  +              if (!logui.pausedList.contains(ident)) {
  +                logui.pausedList.add(ident);
  +              }
  +              else {
  +                logui.pausedList.remove(ident);
  +              }
   			}
   		  };
   		pauseAction.putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_P));
  
  
  

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