Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » show a view from a LaunchDelegate
show a view from a LaunchDelegate [message #427812] Thu, 30 July 2009 14:12 Go to next message
Christoph Höger is currently offline Christoph HögerFriend
Messages: 40
Registered: July 2009
Member
Hi,

after my launch delegate succeeded I would like to open a special view
that shows the output of the launch to the user. But I am not able to
get an active IWorkbenchwindow from "down there" (aka the launch()
method) is there any trick to do that?
Re: show a view from a LaunchDelegate [message #441836 is a reply to message #427812] Fri, 31 July 2009 11:32 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Christoph Höger wrote:
> Hi,
>
> after my launch delegate succeeded I would like to open a special view
> that shows the output of the launch to the user. But I am not able to
> get an active IWorkbenchwindow from "down there" (aka the launch()
> method) is there any trick to do that?

Probably the launch() method is from a class of debug core plugin. Did
you try PlatformUI.getWorkbench().getActiveWindow()?

- Prakash

---
http://blog.eclipse-tips.com
Re: show a view from a LaunchDelegate [message #451364 is a reply to message #441836] Sat, 01 August 2009 10:27 Go to previous message
Christoph Höger is currently offline Christoph HögerFriend
Messages: 40
Registered: July 2009
Member
Am 31.07.2009 13:32, schrieb Prakash G.R.:
> Christoph Höger wrote:
>> Hi,
>>
>> after my launch delegate succeeded I would like to open a special view
>> that shows the output of the launch to the user. But I am not able to
>> get an active IWorkbenchwindow from "down there" (aka the launch()
>> method) is there any trick to do that?
>
> Probably the launch() method is from a class of debug core plugin. Did
> you try PlatformUI.getWorkbench().getActiveWindow()?

Yeah, that returned null. The trick is to run that via
Display.asyncExec(). Ugly - but works.
Previous Topic:What Restrictions Does Eclipse Impose On Plugin Development
Next Topic:[commands] override a handler
Goto Forum:
  


Current Time: Thu Mar 28 14:47:22 GMT 2024

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

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

Back to the top