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

If you don't get another response here you should ask this on the
eclipse.platform newsgroup, since these are not swt components that you're
asking about.

swt's ProgressBar.setMaximum(int) can be invoked at any time to change a
ProgressBar's maximum value, but I don't know if there's a way provided by
the jobs cake that you're using to change this after it has started.

Grant


"Faisal" <mkhuda_relisource@xxxxxxxxx> wrote in message
news:4a08dc330a63fe050238e38db13712fe$1@xxxxxxxxxxxxxxxxxx
> 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.
>