Skip to main content



      Home
Home » Eclipse Projects » JFace » Wizards + IRunnableWithProgress + Avoiding disabling controls
Wizards + IRunnableWithProgress + Avoiding disabling controls [message #507973] Fri, 15 January 2010 06:48
Eclipse UserFriend
Hello,

We are running a long running job within a wizard page using the
following pattern:

getContainer().run(true, true, new IRunnableWithProgress() ..

This works fine except it blocks the controls in the wizard page (apart
from the cancel button). We have a table displayed in the page which is
detailing results of the worker thread, the user should be able to
scroll the table to view the rows. Although we can explicit re-enable
the table after the runnable has kicked off, the cursor still remains
busy when hovering over the control. There must be an elegant way to
realise this?

Thanks,

James
Re: Wizards + IRunnableWithProgress + Avoiding disabling controls [message #508034 is a reply to message #507973] Fri, 15 January 2010 05:46 Go to previous message
Eclipse UserFriend
Hello James. Perhaps attach a MouseTrackListener to the table and switch and
restore the cursor with Control.setCursor()?

Brian,

James Willans wrote:
> Hello,
>
> We are running a long running job within a wizard page using the
> following pattern:
>
> getContainer().run(true, true, new IRunnableWithProgress() ..
>
> This works fine except it blocks the controls in the wizard page (apart
> from the cancel button). We have a table displayed in the page which is
> detailing results of the worker thread, the user should be able to
> scroll the table to view the rows. Although we can explicit re-enable
> the table after the runnable has kicked off, the cursor still remains
> busy when hovering over the control. There must be an elegant way to
> realise this?
>
> Thanks,
>
> James
Previous Topic:Listen to selection changes in properties view
Next Topic:Location of a context menu contributed by a MenuManager
Goto Forum:
  


Current Time: Wed Jul 02 23:22:27 EDT 2025

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

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

Back to the top