[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] How to reset maximum value of progress monitor

Hi,

I am using IProgressMonitor in WorkspaceJob.runInWorkspace(). Depending on some actions, the total number of jobs need to performed might need to be changed. I am not interesedted to use IProgressMonitor.UNKNOWN. Is there any way to dynamically reset the value of total jobs, i.e; maximum value of the progress bar (that we mention early in beginTask()), and reset the value of current progress?

In swing ProgressBar there are setValue(), and reset() functions. I am expecting some similar things. Please let me know.