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?
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()?
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.