Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to use Progress-Bar widget in eclispe rcp
How to use Progress-Bar widget in eclispe rcp [message #721616] Fri, 02 September 2011 10:37 Go to next message
raghav Missing name is currently offline raghav Missing name
Messages: 18
Registered: May 2011
Junior Member

i have a very long running operation at background so i want to show the progress to the user in UI(My view).
I used ProgressMonitorDialog and can achieve the requirement but i want to use a normal ProgressBar(org.eclipse.swt.widgets.ProgressBar) despite for some reasons.

how can i implement a progressbar that simultaneously works(shows the progress i.e.., progress moves from 1% to 5%...) along with the background operation. Can someone provide a small pseudo-code.
Re: How to use Progress-Bar widget in eclispe rcp [message #721619 is a reply to message #721616] Fri, 02 September 2011 10:42 Go to previous message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
Snippets
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet56.java

and

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet57.java

should help


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Detect drop location from DND event
Next Topic:Exception in thread "AWT-AppKit" org.eclipse.swt.SWTException: Invalid thread access
Goto Forum:
  


Current Time: Wed Oct 01 10:29:04 GMT 2014

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

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