[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Creating an Indeterminate ProgressBar for Duration of a Function call

Hey,

I am trying to create an indeterminate progress bar that displays for the duration of a function call. The code looks like this (sorry, I don't know how to use code tags):

[code]
ProgressBar pb = new ProgressBar(Display.getCurrent().getActiveShell(), SWT.HORIZONTAL | SWT.INDETERMINATE);


runModularFindCommand(runThisCommand);

pb.dispose();
[/code]

The modular find command can take from 1-15 seconds depending on the results it turns up, so there needs to be some sort of progress indication, though it is essentialyl worthless to try to use a ProgressMonitorDialog as I believe those cannot be indeterminate.

So, my problem is that this does not bring up a ProgressBar at all. Either what am I missing, or how can I make a ProgressMonitorDialog indeterminate, because I know how to make those, just not how to make them indeterminate.