X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fsynchronization%2FLogErrorHandler.java;h=f37e1ee9a74089a3049f379216d3f974ea79ae23;hb=006602e856bbc3e222789cfe00a923b863e3e91b;hp=9a799d1d1843ac98aff7a3f6f5f5f871b081fa96;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/LogErrorHandler.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/LogErrorHandler.java index 9a799d1d1..f37e1ee9a 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/LogErrorHandler.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/synchronization/LogErrorHandler.java @@ -1,36 +1,36 @@ -/******************************************************************************* - * 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.diagram.synchronization; - -import org.simantics.utils.ui.ErrorLogger; - -/** - * @author Tuukka Lehtonen - */ -public class LogErrorHandler implements ErrorHandler { - - public static final LogErrorHandler INSTANCE = new LogErrorHandler(); - - private LogErrorHandler() { - } - - @Override - public void error(String message, Throwable t) { - ErrorLogger.defaultLogError(message, t); - } - - @Override - public void warning(String message, Exception e) { - ErrorLogger.defaultLogWarning(message, e); - } - -} +/******************************************************************************* + * 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.diagram.synchronization; + +import org.simantics.utils.ui.ErrorLogger; + +/** + * @author Tuukka Lehtonen + */ +public class LogErrorHandler implements ErrorHandler { + + public static final LogErrorHandler INSTANCE = new LogErrorHandler(); + + private LogErrorHandler() { + } + + @Override + public void error(String message, Throwable t) { + ErrorLogger.defaultLogError(message, t); + } + + @Override + public void warning(String message, Exception e) { + ErrorLogger.defaultLogWarning(message, e); + } + +}