KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > logger > errormanager > UIErrorManagerWriter


1 /*
2  * CoreLoggerManager.java
3  *
4  * Created on May 24, 2005, 5:03 PM
5  *
6  * To change this template, choose Tools | Options and locate the template under
7  * the Source Creation and Management node. Right-click the template and choose
8  * Open. You can then make changes to the template in the Source Editor.
9  */

10
11 package org.netbeans.modules.logger.errormanager;
12
13 import org.netbeans.modules.logger.listeners.ListenerTools;
14
15
16
17 /**
18  * This class is just here to pass messages from UIErrorManager to ListenerTools.
19  * @author loicsegapelli
20  */

21 public class UIErrorManagerWriter extends ListenerTools {
22     
23     /**
24      * Creates an instance <I>via</I> the superclass <CODE>ListenerTools</CODE>
25      */

26     public UIErrorManagerWriter() {
27         super("COR");
28     }
29     
30     /**
31      * logs messages
32      * @param s message to log
33      */

34     public void log(String JavaDoc s){
35         newBuffer();
36         append(s);
37         flush();
38     }
39     
40 }
41
Popular Tags