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/color RuleColorizer.java ColorPanel.java
Date Mon, 02 Aug 2004 06:01:22 GMT
sdeboy      2004/08/01 23:01:22

  Modified:    src/java/org/apache/log4j/chainsaw/color RuleColorizer.java
                        ColorPanel.java
  Log:
  removed 'clear' method from RuleColorizer - use 'setRules' instead
  
  Revision  Changes    Path
  1.11      +0 -4      logging-log4j/src/java/org/apache/log4j/chainsaw/color/RuleColorizer.java
  
  Index: RuleColorizer.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/color/RuleColorizer.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- RuleColorizer.java	31 Jul 2004 07:23:58 -0000	1.10
  +++ RuleColorizer.java	2 Aug 2004 06:01:22 -0000	1.11
  @@ -115,10 +115,6 @@
       colorChangeSupport.firePropertyChange("colorrule", false, true);
     }
   
  -  public void clear() {
  -    rules.clear();
  -  }
  -
     public void removeRule(String ruleSetName, String expression) {
       if (rules.containsKey(ruleSetName)) {
         List list = (List) rules.get(ruleSetName);
  
  
  
  1.16      +3 -2      logging-log4j/src/java/org/apache/log4j/chainsaw/color/ColorPanel.java
  
  Index: ColorPanel.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/color/ColorPanel.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ColorPanel.java	28 Jul 2004 08:02:18 -0000	1.15
  +++ ColorPanel.java	2 Aug 2004 06:01:22 -0000	1.16
  @@ -75,6 +75,8 @@
   /**
    * Panel which updates a RuleColorizer, allowing the user to build expression-based
    * color rules.
  + * 
  + * TODO: examine ColorPanel/RuleColorizer/LogPanel listeners and interactions
    *
    * @author Scott Deboy <sdeboy@apache.org>
    */
  @@ -311,7 +313,6 @@
   
     void applyRules(String ruleSet) {
       table.getColumnModel().getColumn(0).getCellEditor().stopCellEditing();
  -    colorizer.clear();
   
       List list = new ArrayList();
       Vector vector = tableModel.getDataVector();
  @@ -356,7 +357,7 @@
       Map map = new HashMap();
       map.put(ruleSet, list);
   
  -    colorizer.addRules(map);
  +    colorizer.setRules(map);
     }
   
     JPanel buildClosePanel() {
  
  
  

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