KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > core > mapping > GroupProgressMonitor


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.core.mapping;
12
13 import org.eclipse.core.runtime.IProgressMonitor;
14 import org.eclipse.core.runtime.ProgressMonitorWrapper;
15
16 public class GroupProgressMonitor extends ProgressMonitorWrapper implements
17         IProgressMonitor {
18
19     private final IProgressMonitor group;
20     private final int ticks;
21
22     public GroupProgressMonitor(IProgressMonitor monitor, IProgressMonitor group, int groupTicks) {
23         super(monitor);
24         this.group = group;
25         this.ticks = groupTicks;
26     }
27
28     public IProgressMonitor getGroup() {
29         return group;
30     }
31
32     public int getTicks() {
33         return ticks;
34     }
35
36 }
37
Popular Tags