Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how can i get all editors and all views in a non-ui thread
how can i get all editors and all views in a non-ui thread [message #328632] Wed, 28 May 2008 23:27 Go to next message
Eclipse UserFriend
I tried, get all editors in a non-ui thread worked, but i can't get all views in a non-ui thread.
workbenchpage.getEditors() works in a non-ui thread
workbenchpage.getViews() does not work in a non-ui thread
Anybody has some suggestions? thx.

I must get all views in a NON-UI thread.
Re: how can i get all editors and all views in a non-ui thread [message #328633 is a reply to message #328632] Thu, 29 May 2008 01:32 Go to previous messageGo to next message
Eclipse UserFriend
Why don't you just wrap your call to getViews() in a Display.syncExec()?
This will run it on the UI thread.

Jerome wrote:
> I tried, get all editors in a non-ui thread worked, but i can't get all views in a non-ui thread.
> workbenchpage.getEditors() works in a non-ui thread
> workbenchpage.getViews() does not work in a non-ui thread
> Anybody has some suggestions? thx.
>
> I must get all views in a NON-UI thread.
Re: how can i get all editors and all views in a non-ui thread [message #328728 is a reply to message #328633] Mon, 02 June 2008 23:03 Go to previous message
Eclipse UserFriend
Thanks! I've solved this problem.
To get all views in a non-ui thread:
workbenchpage.getViewFactory().getViews()
Previous Topic:Re: Showing two editors (Horizontal or vertical split) programmatically
Next Topic:Eclipse 3.3 for solaris x86
Goto Forum:
  


Current Time: Fri May 02 08:21:24 EDT 2025

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

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

Back to the top