1 /*******************************************************************************
\r
2 * Copyright (c) 2007, 2012 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.charts.ui;
\r
14 import org.eclipse.core.runtime.IProgressMonitor;
\r
15 import org.simantics.history.util.ProgressMonitor;
\r
18 * @author Tuukka Lehtonen
\r
20 public class CSVProgressMonitor implements ProgressMonitor {
\r
22 private IProgressMonitor monitor;
\r
24 public CSVProgressMonitor(IProgressMonitor monitor) {
\r
25 this.monitor = monitor;
\r
29 public void beginTask(String name, int totalWork) {
\r
30 monitor.beginTask(name, totalWork);
\r
34 public boolean isCanceled() {
\r
35 return monitor.isCanceled();
\r
39 public void setTaskName(String name) {
\r
40 monitor.setTaskName(name);
\r
44 public void subTask(String name) {
\r
45 monitor.subTask(name);
\r
49 public void worked(int work) {
\r
50 monitor.worked(work);
\r