Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Wizards + IRunnableWithProgress + Avoiding disabling controls
Wizards + IRunnableWithProgress + Avoiding disabling controls [message #507973] Fri, 15 January 2010 11:48
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
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 10:46 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
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: Fri Apr 19 11:29:42 GMT 2024

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

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

Back to the top