]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.message/src/org/simantics/message/ILogListener.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.message / src / org / simantics / message / ILogListener.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
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;\r
25 \r
26 import org.eclipse.core.runtime.IStatus;\r
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 }