/* * Copyright (C) 2012, Sasa Zivkov and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0 which is available at * https://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: BSD-3-Clause */ package org.eclipse.jgit.lib; /** * A convenient base class which provides empty method bodies for all * ProgressMonitor methods. *

* Could be used in scenarios when only some of the progress notifications are * important and others can be ignored. */ public abstract class EmptyProgressMonitor implements ProgressMonitor { @Override public void start(int totalTasks) { // empty } @Override public void beginTask(String title, int totalWork) { // empty } @Override public void update(int completed) { // empty } @Override public void endTask() { // empty } @Override public boolean isCancelled() { return false; } @Override public void showDuration(boolean enabled) { // not implemented } }