Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Progress bar for long single operations
Progress bar for long single operations [message #893738] Thu, 05 July 2012 12:30 Go to next message
shay leon is currently offline shay leonFriend
Messages: 9
Registered: June 2012
Junior Member
Hi

Is it possible to have any progress indication while doing long single commands operations?

For example, processing this line (Jaxb) takes a very long time.

transformer.transform(new SAXSource(source), result);

Can I show any progress while this is running?

Many thanks.

Shay
Re: Progress bar for long single operations [message #893747 is a reply to message #893738] Thu, 05 July 2012 12:51 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Not really a JDT question, is it? Smile

That said: create a org.eclipse.core.runtime.jobs.Job.
Its run method receives an IProgressMonitor against which you'll need to report progress.

HTH,
Stephan
Re: Progress bar for long single operations [message #893763 is a reply to message #893747] Thu, 05 July 2012 13:31 Go to previous messageGo to next message
shay leon is currently offline shay leonFriend
Messages: 9
Registered: June 2012
Junior Member
Sorry Stephan, new to Eclipse and wasn't sure where to post this.
Which forum is suitable for these type of questions?

Unless I am missing something, I don't think that your solution will work for a single command.

Many thanks for your help.

Shay
Re: Progress bar for long single operations [message #893774 is a reply to message #893763] Thu, 05 July 2012 13:40 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Eclipse Platform would be the forum.
They even have a recent thread on this topic: http://www.eclipse.org/forums/index.php/t/365167/

best,
Stephan
Previous Topic:New Project Wizard Failed
Next Topic:JDT formatter option: closing parenthesis on a new line?
Goto Forum:
  


Current Time: Fri Apr 26 19:20:07 GMT 2024

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

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

Back to the top