Launching plugin program with access to workbench [message #184525] |
Sun, 25 January 2004 07:34  |
Eclipse User |
|
|
|
Originally posted by: fredrik.removespam.karlsson.cyrone.com
Hi,
I am writing a plugin with a launcher. Inside that launcher I would like to
open up a view in the workbench, which displays the results from the
execution. But I cannot find any way to get a reference to the existing
workbench from inside the launcher. And all the examples I can find on the
eclipse site about launching programs is about stand-alone programs, which
do not connect back to the existing instance of Eclipse.
Does anyone know how to access the workbench from inside a launcher.
Regards,
Fredrik Karlsson
|
|
|
|
Re: Launching plugin program with access to workbench [message #185245 is a reply to message #184525] |
Tue, 27 January 2004 03:02  |
Eclipse User |
|
|
|
If I understand you correctly, what you want is to make a certain view open
from the "lauch" method. If this is right than try the following:
public void launch(ILaunchConfiguration configuration, String mode, ILaunch
launch, IProgressMonitor monitor) throws CoreException {
...
...
Display.getDefault().asyncExec(new Runnable {
public void run () {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().showVie
w(<your_view_id_here>);
}
}
}
hope thi
"Fredrik Karlsson" <fredrik.removespam.karlsson@cyrone.com> wrote in message
news:bv0d1t$s4p$1@eclipse.org...
> Hi,
>
> I am writing a plugin with a launcher. Inside that launcher I would like
to
> open up a view in the workbench, which displays the results from the
> execution. But I cannot find any way to get a reference to the existing
> workbench from inside the launcher. And all the examples I can find on the
> eclipse site about launching programs is about stand-alone programs, which
> do not connect back to the existing instance of Eclipse.
>
> Does anyone know how to access the workbench from inside a launcher.
>
>
> Regards,
> Fredrik Karlsson
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05257 seconds