]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.charts/src/org/simantics/charts/ui/CSVProgressMonitor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / ui / CSVProgressMonitor.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2012 Association for Decentralized Information Management in
3  * Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.charts.ui;
13
14 import org.eclipse.core.runtime.IProgressMonitor;
15 import org.simantics.history.util.ProgressMonitor;
16
17 /**
18  * @author Tuukka Lehtonen
19  */
20 public class CSVProgressMonitor implements ProgressMonitor {
21
22     private IProgressMonitor monitor;
23
24     public CSVProgressMonitor(IProgressMonitor monitor) {
25         this.monitor = monitor;
26     }
27
28     @Override
29     public void beginTask(String name, int totalWork) {
30         monitor.beginTask(name, totalWork);
31     }
32
33     @Override
34     public boolean isCanceled() {
35         return monitor.isCanceled();
36     }
37
38     @Override
39     public void setTaskName(String name) {
40         monitor.setTaskName(name);
41     }
42
43     @Override
44     public void subTask(String name) {
45         monitor.subTask(name);
46     }
47
48     @Override
49     public void worked(int work) {
50         monitor.worked(work);
51     }
52
53 }