|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindoo.remote.api.org.eclipse.core.runtime.RemoteNullProgressMonitor
public class RemoteNullProgressMonitor
A default progress monitor implementation suitable for subclassing.
This implementation supports cancelation. The default implementations of the other methods do nothing.
Field Summary |
---|
Fields inherited from interface com.mindoo.remote.api.org.eclipse.core.runtime.IRemoteProgressMonitor |
---|
UNKNOWN |
Constructor Summary | |
---|---|
RemoteNullProgressMonitor()
|
Method Summary | |
---|---|
void |
beginTask(java.lang.String name,
int totalWork)
Notifies that the main task is beginning. |
void |
done()
Notifies that the work is done; that is, either the main task is completed or the user canceled it. |
void |
internalWorked(double work)
Internal method to handle scaling correctly. |
boolean |
isCanceled()
Returns whether cancelation of current operation has been requested. |
void |
setCanceled(boolean value)
Sets the cancel state to the given value. |
void |
setStatus(int severity,
int code,
java.lang.String message,
java.lang.Throwable t)
Method to return a status information to Eclipse after IRemoteProgressMonitor.done() has
been called. |
void |
setTaskName(java.lang.String name)
Sets the task name to the given value. |
void |
subTask(java.lang.String name)
Notifies that a subtask of the main task is beginning. |
void |
worked(int work)
Notifies that a given number of work unit of the main task has been completed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteNullProgressMonitor()
Method Detail |
---|
public void beginTask(java.lang.String name, int totalWork)
IRemoteProgressMonitor
beginTask
in interface IRemoteProgressMonitor
name
- the name (or description) of the main tasktotalWork
- the total number of work units into which
the main task is been subdivided. If the value is UNKNOWN
the implementation is free to indicate progress in a way which
doesn't require the total number of work units in advance.public void done()
IRemoteProgressMonitor
done
in interface IRemoteProgressMonitor
public void internalWorked(double work)
IRemoteProgressMonitor
internalWorked
in interface IRemoteProgressMonitor
work
- the amount of work donepublic boolean isCanceled()
IRemoteProgressMonitor
isCanceled
in interface IRemoteProgressMonitor
true
if cancellation has been requested,
and false
otherwiseIRemoteProgressMonitor.setCanceled(boolean)
public void setCanceled(boolean value)
IRemoteProgressMonitor
setCanceled
in interface IRemoteProgressMonitor
value
- true
indicates that cancelation has
been requested (but not necessarily acknowledged);
false
clears this flagIRemoteProgressMonitor.isCanceled()
public void setStatus(int severity, int code, java.lang.String message, java.lang.Throwable t)
IRemoteProgressMonitor
IRemoteProgressMonitor.done()
has
been called. See org.eclipse.core.runtime.IStatus
for details on
the parameters
setStatus
in interface IRemoteProgressMonitor
public void setTaskName(java.lang.String name)
IRemoteProgressMonitor
setTaskName
in interface IRemoteProgressMonitor
name
- the name (or description) of the main taskIRemoteProgressMonitor.beginTask(java.lang.String, int)
public void subTask(java.lang.String name)
IRemoteProgressMonitor
subTask
in interface IRemoteProgressMonitor
name
- the name (or description) of the subtaskpublic void worked(int work)
IRemoteProgressMonitor
worked
in interface IRemoteProgressMonitor
work
- a non-negative number of work units just completed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |