public class EclipseProgressObserver extends ProgressObserver
| Modifier and Type | Class and Description |
|---|---|
private static class |
EclipseProgressObserver.Task |
ProgressObserver.ISubtask, ProgressObserver.ITask| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.core.runtime.IProgressMonitor |
monitor |
private EclipseProgressObserver.Task |
parent |
private java.util.List<EclipseProgressObserver.Task> |
subtasks |
NO_OBSERVER, NO_SUBTASK| Constructor and Description |
|---|
EclipseProgressObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyEnd(ProgressObserver.ITask task,
ProgressObserver.ISubtask subtask)
Notifies about ending a (sub)task.
|
void |
notifyProgress(ProgressObserver.ITask task,
ProgressObserver.ISubtask subtask,
int step,
int max)
Notifies about processing a task or a subtask.
|
void |
notifyStart(ProgressObserver.ITask task,
ProgressObserver.ISubtask subtask,
int max)
Notifies about starting a (sub)task.
|
void |
register(org.eclipse.core.runtime.IProgressMonitor monitor) |
ProgressObserver.ISubtask |
registerSubtask(java.lang.String subtask)
Registers a subtask to notify about processing progress.
|
ProgressObserver.ITask |
registerTask(java.lang.String task)
Registers a task for notify about processing progress.
|
void |
unregister(org.eclipse.core.runtime.IProgressMonitor monitor) |
notifyEnd, notifyProgress, notifyProgress, notifyProgress, notifyStartprivate org.eclipse.core.runtime.IProgressMonitor monitor
private EclipseProgressObserver.Task parent
private java.util.List<EclipseProgressObserver.Task> subtasks
public void register(org.eclipse.core.runtime.IProgressMonitor monitor)
public void unregister(org.eclipse.core.runtime.IProgressMonitor monitor)
public ProgressObserver.ITask registerTask(java.lang.String task)
ProgressObserverregisterTask in class ProgressObservertask - the name of the taskpublic ProgressObserver.ISubtask registerSubtask(java.lang.String subtask)
ProgressObserverregisterSubtask in class ProgressObserversubtask - the name of the sub taskpublic void notifyStart(ProgressObserver.ITask task, ProgressObserver.ISubtask subtask, int max)
ProgressObservernotifyStart in class ProgressObservertask - the identification of task to notify about (initially
use ProgressObserver.registerTask(String) for registering a task)subtask - the subtask (may be ProgressObserver.NO_SUBTASK) (initially
use ProgressObserver.registerSubtask(String) for registering a sub task)max - the intended maximum steps of the subtaskpublic void notifyProgress(ProgressObserver.ITask task, ProgressObserver.ISubtask subtask, int step, int max)
ProgressObservernotifyProgress in class ProgressObservertask - the identification of the task to notify about (initially
use ProgressObserver.registerTask(String) for registering a task)subtask - the identification of the subtask (may be ProgressObserver.NO_SUBTASK, initially
use ProgressObserver.registerSubtask(String) for registering a sub task)step - the current step in 0<=step<=maxmax - the maximum number of steps, ignored if negative and value from
start notification is used insteadpublic void notifyEnd(ProgressObserver.ITask task, ProgressObserver.ISubtask subtask)
ProgressObserverProgressObserver.registerTask(String) and ProgressObserver.registerSubtask(String).
This method shall implicitly unregister the given task and/or subtask.notifyEnd in class ProgressObservertask - the identification of the task which ends (initially
use ProgressObserver.registerTask(String) for registering a task)subtask - the identification of the subtask with task
(may be <ProgressObserver.NO_SUBTASK, if given, only the subtask is supposed to end, initially
use ProgressObserver.registerSubtask(String) for registering a sub task)Copyright © 2009 - 2018 SSE. All Rights Reserved.