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