| Creating an Indeterminate ProgressBar for Duration of a Function call [message #330186] | 
Fri, 18 July 2008 10:31   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: kevin.oberg.baesystems.com 
 
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): 
 
ProgressBar pb = new ProgressBar(Display.getCurrent().getActiveShell(), 
SWT.HORIZONTAL | SWT.INDETERMINATE);
runModularFindCommand(runThisCommand);
pb.dispose();
  
 
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.
 |  
 |  
  | 
 | 
Powered by 
FUDForum. Page generated in 0.02810 seconds