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/src/java/org/apache/log4j/chainsaw/help Tutorial.java
Date Mon, 22 Sep 2003 06:55:27 GMT
psmith      2003/09/21 23:55:27

  Modified:    src/java/org/apache/log4j/chainsaw/help Tutorial.java
  Log:
  updated the confirmation text, and now starts 3 Generator
  plugins.
  
  Revision  Changes    Path
  1.2       +7 -3      jakarta-log4j/src/java/org/apache/log4j/chainsaw/help/Tutorial.java
  
  Index: Tutorial.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/help/Tutorial.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Tutorial.java	19 Sep 2003 07:06:40 -0000	1.1
  +++ Tutorial.java	22 Sep 2003 06:55:27 -0000	1.2
  @@ -70,10 +70,14 @@
       if (
         JOptionPane.showConfirmDialog(
             null,
  -          "This will start some pretend receivers for us in the Tutorial.  Is that ok?",
  +          "This will start 3 \"Generator\" receivers for use in the Tutorial.  Is that
ok?",
             "Confirm", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
  -      Plugin p = new Generator("Generator 1");
  -      PluginRegistry.startPlugin(p);
  +      Plugin p1 = new Generator("Generator 1");
  +      Plugin p2 = new Generator("Generator 2");
  +      Plugin p3 = new Generator("Generator 3");
  +      PluginRegistry.startPlugin(p1);
  +      PluginRegistry.startPlugin(p2);
  +      PluginRegistry.startPlugin(p3);
       }
     }
   }
  
  
  

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