Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » show a view from a LaunchDelegate
show a view from a LaunchDelegate [message #427812] Thu, 30 July 2009 10:12 Go to next message
Eclipse UserFriend
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 07:32 Go to previous messageGo to next message
Eclipse UserFriend
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 06:27 Go to previous message
Eclipse UserFriend
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 Jul 10 04:13:59 EDT 2025

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

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

Back to the top