/******************************************************************************* * Copyright (c) 2012 Pivotal Software, Inc. * 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: * Pivotal Software, Inc. - initial API and implementation *******************************************************************************/ package org.springsource.ide.eclipse.commons.core; import org.eclipse.core.runtime.ILog; import org.eclipse.core.runtime.IStatus; import org.springsource.ide.eclipse.commons.internal.core.CorePlugin; /** * @author Steffen Pingel * @author Leo Dos Santos * @author Christian Dupuis */ public class StatusHandler { public static void log(IStatus status) { CorePlugin plugin = CorePlugin.getDefault(); if (plugin!=null) { ILog log = plugin.getLog(); if (log!=null) { log.log(status); } } } }