X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.charts%2Fsrc%2Forg%2Fsimantics%2Fcharts%2Fui%2FCSVProgressMonitor.java;fp=bundles%2Forg.simantics.charts%2Fsrc%2Forg%2Fsimantics%2Fcharts%2Fui%2FCSVProgressMonitor.java;h=847bcd7f8712d8452497a6df74dc79514bc64a24;hp=fd7b4cdd287c9a0230924c974416fd2b6e50af3c;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.charts/src/org/simantics/charts/ui/CSVProgressMonitor.java b/bundles/org.simantics.charts/src/org/simantics/charts/ui/CSVProgressMonitor.java index fd7b4cdd2..847bcd7f8 100644 --- a/bundles/org.simantics.charts/src/org/simantics/charts/ui/CSVProgressMonitor.java +++ b/bundles/org.simantics.charts/src/org/simantics/charts/ui/CSVProgressMonitor.java @@ -1,53 +1,53 @@ -/******************************************************************************* - * Copyright (c) 2007, 2012 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.charts.ui; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.simantics.history.util.ProgressMonitor; - -/** - * @author Tuukka Lehtonen - */ -public class CSVProgressMonitor implements ProgressMonitor { - - private IProgressMonitor monitor; - - public CSVProgressMonitor(IProgressMonitor monitor) { - this.monitor = monitor; - } - - @Override - public void beginTask(String name, int totalWork) { - monitor.beginTask(name, totalWork); - } - - @Override - public boolean isCanceled() { - return monitor.isCanceled(); - } - - @Override - public void setTaskName(String name) { - monitor.setTaskName(name); - } - - @Override - public void subTask(String name) { - monitor.subTask(name); - } - - @Override - public void worked(int work) { - monitor.worked(work); - } - +/******************************************************************************* + * Copyright (c) 2007, 2012 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.charts.ui; + +import org.eclipse.core.runtime.IProgressMonitor; +import org.simantics.history.util.ProgressMonitor; + +/** + * @author Tuukka Lehtonen + */ +public class CSVProgressMonitor implements ProgressMonitor { + + private IProgressMonitor monitor; + + public CSVProgressMonitor(IProgressMonitor monitor) { + this.monitor = monitor; + } + + @Override + public void beginTask(String name, int totalWork) { + monitor.beginTask(name, totalWork); + } + + @Override + public boolean isCanceled() { + return monitor.isCanceled(); + } + + @Override + public void setTaskName(String name) { + monitor.setTaskName(name); + } + + @Override + public void subTask(String name) { + monitor.subTask(name); + } + + @Override + public void worked(int work) { + monitor.worked(work); + } + } \ No newline at end of file