Mercurial > projects > dwt-addons
diff dwtx/jface/util/ILogger.d @ 4:c87617952847
some JFace modules
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 28 Mar 2008 17:08:33 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwtx/jface/util/ILogger.d Fri Mar 28 17:08:33 2008 +0100 @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2005 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: + * Chris Gross (schtoo@schtoo.com) - initial API and implementation + * (bug 49497 [RCP] JFace dependency on dwtx.core.runtime enlarges standalone JFace applications) + * Port to the D programming language: + * Frank Benoit <benoit@tionex.de> + *******************************************************************************/ + +module dwtx.jface.util.ILogger; + +import dwtx.core.runtime.IStatus; + +/** + * A mechanism to log errors throughout JFace. + * <p> + * Clients may provide their own implementation to change + * how errors are logged from within JFace. + * </p> + * + * @see dwtx.jface.util.Policy#getLog() + * @see dwtx.jface.util.Policy#setLog(ILogger) + * @since 3.1 + */ +public interface ILogger { + + /** + * Logs the given status. + * + * @param status the status to log + */ + public void log(IStatus status); + +}