Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Launching plugin program with access to workbench
Launching plugin program with access to workbench [message #184525] Sun, 25 January 2004 07:34 Go to next message
Eclipse UserFriend
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 #184894 is a reply to message #184525] Mon, 26 January 2004 09:14 Go to previous messageGo to next message
Eclipse UserFriend
If you're launching a seperate process, no reference to the Eclipse
workbench is available. You'd have to implement your own communication
between the processes, perhaps via a socket.

Darin

"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
>
>
Re: Launching plugin program with access to workbench [message #185245 is a reply to message #184525] Tue, 27 January 2004 03:02 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Eclipse for HP-UX PA-RISC 1.1?
Next Topic:Source for org.eclipse.jdt.junit_2.1.1
Goto Forum:
  


Current Time: Mon May 12 21:45:45 EDT 2025

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

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

Back to the top