org.eclipse.core.runtime.ILog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.runtime;
import org.osgi.framework.Bundle;
/**
* A log to which status events can be written. Logs appear on individual
* plug-ins and on the platform itself. Clients can register log listeners which
* will receive notification of all log events as they come in.
*
* XXX Need to create a new log interface on common plugin. That interface should be a super interface of this ILog.
* getBundle() would stay here. In the super interface we would have getName()
*
*
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ILog {
/**
* Adds the given log listener to this log. Subsequently the log listener will
* receive notification of all log events passing through this log.
* This method has no effect if the identical listener is already registered on this log.
*
* @param listener the listener to add to this log
* @see Platform#addLogListener(ILogListener)
*/
public void addLogListener(ILogListener listener);
/**
* Returns the plug-in with which this log is associated.
*
* @return the plug-in with which this log is associated
* @since 3.0
*/
public Bundle getBundle();
/**
* Logs the given status. The status is distributed to the log listeners
* installed on this log and then to the log listeners installed on the platform.
*
* @param status the status to log
*/
public void log(IStatus status);
/**
* Removes the given log listener to this log. Subsequently the log listener will
* no longer receive notification of log events passing through this log.
* This method has no effect if the identical listener is not registered on this log.
*
* @param listener the listener to remove
* @see Platform#removeLogListener(ILogListener)
*/
public void removeLogListener(ILogListener listener);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy