]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.message/src/org/simantics/message/ILogListener.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.message / src / org / simantics / message / ILogListener.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 /*******************************************************************************
13  * Copyright (c) 2000, 2006 IBM Corporation and others.
14  * All rights reserved. This program and the accompanying materials
15  * are made available under the terms of the Eclipse Public License v1.0
16  * which accompanies this distribution, and is available at
17  * http://www.eclipse.org/legal/epl-v10.html
18  * 
19  * Contributors:
20  *     IBM Corporation - initial API and implementation
21  *******************************************************************************/
22 package org.simantics.message;
23
24 import java.util.EventListener;
25
26 import org.eclipse.core.runtime.IStatus;
27
28 /**
29  * A log listener is notified of entries added to a plug-in's log.
30  * <p>
31  * This interface can be used without OSGi running.
32  * </p><p>
33  * Clients may implement this interface.
34  * </p>
35  */
36 public interface ILogListener extends EventListener {
37     /**
38      * Notifies this listener that given status has been logged by
39      * a plug-in.  The listener is free to retain or ignore this status.
40      * 
41      * @param status the status being logged
42      * @param plugin the plugin of the log which generated this event
43      */
44     public void logging(IStatus status, String plugin);
45 }