Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ILaunchListener
ILaunchListener [message #249797] Fri, 04 June 2004 18:31 Go to next message
Eclipse UserFriend
Originally posted by: rhill2_._free.fr

hi-

in my plugin i launch a new java process from within eclipse via
IVMRunner.run(ILaunchConfiguration, Ilaunch, IProgressMonitor);

id like to be notified when the VM exits. Ive looked into ILaunch and
ILaunchListener, but i am a bit confused about it. i dont see how to
register the listener with my launch, ive tried something like the
following with no success :

DebugPlugin.getDefault().getLaunchManager().addLaunchListene r(launchListener);
DebugPlugin.getDefault().getLaunchManager().addLaunch(launch );

how am i supposed to do this ?

thanks for your help !

-- gd
Re: ILaunchListener [message #249818 is a reply to message #249797] Fri, 04 June 2004 19:53 Go to previous messageGo to next message
Eclipse UserFriend
Gilles Dodinet wrote:
> hi-
>
> in my plugin i launch a new java process from within eclipse via
> IVMRunner.run(ILaunchConfiguration, Ilaunch, IProgressMonitor);
>
> id like to be notified when the VM exits. Ive looked into ILaunch and
> ILaunchListener, but i am a bit confused about it. i dont see how to
> register the listener with my launch, ive tried something like the
> following with no success :
>
> DebugPlugin.getDefault().getLaunchManager().addLaunchListene r(launchListener);
>
> DebugPlugin.getDefault().getLaunchManager().addLaunch(launch );
>
> how am i supposed to do this ?
>
> thanks for your help !
>
> -- gd

Sounds like you are looking for ILaunchesListener2. It defines a
launchesTerminated(ILaunch[] launches) method to notify you when a
launch completes.
Kevin
Re: ILaunchListener [message #249855 is a reply to message #249818] Sat, 05 June 2004 06:17 Go to previous message
Eclipse UserFriend
Originally posted by: rhill2_._free.fr

Kevin Barnes wrote:

>
> Sounds like you are looking for ILaunchesListener2. It defines a
> launchesTerminated(ILaunch[] launches) method to notify you when a
> launch completes.

Thanks Kevin ! thats exactly what i needed !

-- gd
Previous Topic:What's up with the Newsgroup server?
Next Topic:[PERSISTENCY] - Simplest way to store Objects / Collections
Goto Forum:
  


Current Time: Fri Jun 13 14:48:03 EDT 2025

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

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

Back to the top