/******************************************************************************* * Copyright (c) 2007, 2010 Association for Decentralized Information Management * in Industry THTH ry. * 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: * VTT Technical Research Centre of Finland - initial API and implementation *******************************************************************************/ package org.simantics.message.internal; import java.util.ArrayList; import java.util.List; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.ListenerList; import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.core.runtime.Status; import org.simantics.message.ILogListener; import org.simantics.message.ILogger; /** * A logger for IStatus instances. * *
* Meant to be used by any Simantics UI's for logging messages that should be * relevant to the user's normal workflow instead of the kinds of * code-error-like messages that go into the normal eclipse Error Log. *
* *
* Use {@link #getDefault()} to get a hold of the singleton instance of Messages
* or even more directly, you can use {@link #defaultLog(IStatus)} to
* effectively perform getDefault().log(status)
.
*
* Originally copied from org.eclipse.core.internal.runtime.Log
* since the code was internal to eclipse and not usable as such. Modifications
* have been made since.
*