blob: a5410b778cd985c48c21dcea8c24c1527e2ad7e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* Copyright (C) 2012, Sasa Zivkov <sasa.zivkov@sap.com> 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.
* <p>
* 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
}
}
|