2 * Copyright (C) 2007 Robin Rosenberg
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License, version 2, as published by the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
17 package org
.spearce
.jgit
.lib
;
20 * Base class for progress monitors. This class tracks progress
21 * but does not report it anywhere;
23 public abstract class AbstractProgressMonitor
implements ProgressMonitor
{
36 public boolean isDone() {
40 public boolean isCancelled() {
44 public void setCancelled(final boolean cancelled
) {
48 public void setTask(final String task
) {
53 public void worked(final int amount
) {
58 public void beginTask(final String task
, final int total
) {
67 abstract protected void report();
69 public String
getTask() {
73 public int getWorked() {
77 public void setTotalWork(final int work
) {
81 public int getTotal() {