Skip to main content
summaryrefslogtreecommitdiffstats
blob: ffce4a37a1e36f524f29e74b350aa357b7212939 (plain) (blame)
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
package org.eclipse.jdt.internal.core.util;

public interface IProgressListener {

/** Notifies that the main task is beginning.
@param name the name (or description) of the main task
@param totalWork the total number of work units into which
the main task is been subdivided
 */
public void begin(String name, int totalWork);
/** Notifies that the work is done, the main task is completed.
 */
public void done();
/** Notifies that a subtask of the main task is beginning.
Subtasks are optional; the main task might not have subtasks.
@param name the name (or description) of the subtask
 */
public void nowDoing(String name);
/** Notifies that a given number of work unit of the main task
has been completed.  Note that this amount represents an
installment, as opposed to a cumulative amount of work done
to date.
@param work the work units just completed
 */
public void worked(int work);
} // IProgressListener

Back to the top