Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Reach Views from scheduled Job
Reach Views from scheduled Job [message #299706] Wed, 22 February 2006 12:19 Go to next message
Eclipse UserFriend
Originally posted by: alban.thomas.xxxxxxxx.com

When called from a scheduled job, the method
WorkbenchWindow.getActiveWorkbenchWindow() returns null.
I guess its because the related thread is non-UI (as specified in the
JavaDoc).

But I still wish to access my views, and the only way I know is through
their WorkbenchPage.

Maybe it's obvious, but does anyone know how to reach views from a
scheduled job ?

Any information would be of great help,
Thanks in advance,
Alban
Re: Reach Views from scheduled Job [message #299707 is a reply to message #299706] Wed, 22 February 2006 12:27 Go to previous messageGo to next message
Eclipse UserFriend
Your job has to have access to the display, but then you can use a
Runnable and display.syncExec(*) or display.asyncExec(*) to reach back
into the UI thread and execute the UI related code.


Later,
PW
Re: Reach Views from scheduled Job [message #299730 is a reply to message #299707] Thu, 23 February 2006 04:25 Go to previous message
Eclipse UserFriend
Originally posted by: alban.thomas.xxx.com

Thanks a lot Paul, I understand more things about the UI-Thread now.
And my code is working better :)
Previous Topic:UI Automation Tools for Eclipse 3.1.x?
Next Topic:Building a product based on standard plugins...
Goto Forum:
  


Current Time: Thu May 08 01:21:46 EDT 2025

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

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

Back to the top