The can be accomplished somewhat by extending mxOrganicLayout
and overriding the following methods
@Override
public void execute(Object cell)
{
progress.setProgress(0);
try
{
super.execute(cell);
}
finally
{
progress.setProgress(maxIterations);
}
}
@Override
protected void performRound()
{
progress.setNote("Iteration " + iteration);
progress.setProgress(iteration);
super.performRound();
}
final ProgressMonitor progress;
Obviously, you need to set progress
at some point as well. execute
notifies the progress monitor that execution has started, and closes it when it is done.
performRound
is called to do the actual updates, so incrementing the progress there will cause the progress bar to advance.