Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Creating an Indeterminate ProgressBar for Duration of a Function call
Creating an Indeterminate ProgressBar for Duration of a Function call [message #330186] Fri, 18 July 2008 14:31 Go to next message
Eclipse UserFriend
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.
Re: Creating an Indeterminate ProgressBar for Duration of a Function call [message #330189 is a reply to message #330186] Fri, 18 July 2008 15:19 Go to previous message
Eclipse UserFriend
Originally posted by: kevin.oberg.baesystems.com

I figured it out, sorry can't delete this.


I should have been creating a new shell based on the default/current
display instead of using getActiveShell.

Silly me.
Previous Topic:Update site hangs Eclipse (3.3)
Next Topic:Headless eclipse ava.lang.ClassNotFoundException: org.eclipse.core.launcher.Main
Goto Forum:
  


Current Time: Wed Jul 17 19:46:45 GMT 2024

Powered by FUDForum. Page generated in 0.03063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top