|
Eclipse eRCP Release 1.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.update.core.InstallMonitor
Install progress monitor Delegating wrapper for IProgressMonitor used for installation handling.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Nested Class Summary | |
---|---|
protected class |
InstallMonitor.MonitorState
|
Field Summary | |
---|---|
protected long |
currentCount
|
protected IProgressMonitor |
monitor
|
protected boolean |
showDetails
|
protected String |
subTaskString
|
protected Stack |
tasks
|
protected String |
taskString
|
protected long |
totalCopyCount
|
Constructor Summary | |
---|---|
protected |
InstallMonitor()
|
|
InstallMonitor(IProgressMonitor monitor)
Install monitor constructor |
Method Summary | |
---|---|
void |
beginTask(String name,
int totalWork)
Begin new monitor task. |
void |
done()
Indicate completion of monitor activity. |
void |
incrementCount(long increment)
Increments the number of bytes copied. |
void |
internalWorked(double work)
Indicate monitor progress. |
boolean |
isCanceled()
Check is use indicated that the operation be cancelled. |
void |
restoreState()
Restore the monitor state. |
void |
saveState()
Save the current monitor state. |
void |
setCanceled(boolean value)
Set the cancellation state. |
void |
setCopyCount(long count)
Sets the number of bytes already copied. |
void |
setTaskName(String name)
Set task name. |
void |
setTotalCount(long count)
Sets the total number of bytes to copy. |
void |
showCopyDetails(boolean setting)
Indicate whether the monitor subtask message should include copy progress counts. |
void |
subTask(String name)
Set subtask name. |
void |
worked(int work)
Indicate monitor progress. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IProgressMonitor monitor
protected Stack tasks
protected String taskString
protected String subTaskString
protected boolean showDetails
protected long totalCopyCount
protected long currentCount
Constructor Detail |
protected InstallMonitor()
public InstallMonitor(IProgressMonitor monitor)
monitor
- base install monitorMethod Detail |
public void beginTask(String name, int totalWork)
IProgressMonitor#beginTask(String, int)
public void done()
IProgressMonitor#done()
public void internalWorked(double work)
IProgressMonitor#internalWorked(double)
public boolean isCanceled()
IProgressMonitor#isCanceled()
public void setCanceled(boolean value)
IProgressMonitor#setCanceled(boolean)
public void setTaskName(String name)
IProgressMonitor#setTaskName(String)
public void subTask(String name)
IProgressMonitor#subTask(String)
public void worked(int work)
IProgressMonitor#worked(int)
public void saveState()
restoreState()
public void restoreState()
saveState()
public void showCopyDetails(boolean setting)
setting
- true
to show the copy count,
false
otherwisesetCopyCount(long)
,
setTotalCount(long)
public void setTotalCount(long count)
count
- total number of bytes to copy.showCopyDetails(boolean)
,
setCopyCount(long)
public void setCopyCount(long count)
count
- number of bytes already copied.showCopyDetails(boolean)
,
setTotalCount(long)
public void incrementCount(long increment)
increment
- number of new bytes copied.
|
Eclipse eRCP Release 1.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |