Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Launch Questions
Launch Questions [message #307938] Wed, 06 September 2006 15:41 Go to next message
Eclipse UserFriend
Originally posted by: mike.bernat.gmail.com

When I launch my external process from the launch configuration dialog,
my launch runs in background and has a "launching" progress monitor.
When I launch the same configuration via a shortcut, it runs in the
foreground thread and has no progress monitor.

Is is possible to get the launch shortcut to behave in the same way as
the dialog method?

Thanks in advance,
Mike
Re: Launch Questions [message #307995 is a reply to message #307938] Thu, 07 September 2006 13:08 Go to previous message
Eclipse UserFriend
Originally posted by: mike.bernat.gmail.com

I have resolved this myself. The definitive work on the subject, "We
Have Lift-off: The Launching Framework in Eclipse"
( http://www.eclipse.org/articles/Article-Launch-Framework/lau nch.html),
shows the shortcut directly calling the launch() method of the selected
launch configuration:
config.launch(mode, null);

A better approach is to use the support in the DebugUI plugin:
DebugUITools.launch(config, mode);

This results in the launch honoring the "launch in background" option
and also creating a progress monitor for the launch.

Mike

> When I launch my external process from the launch configuration dialog,
> my launch runs in background and has a "launching" progress monitor.
> When I launch the same configuration via a shortcut, it runs in the
> foreground thread and has no progress monitor.
>
> Is is possible to get the launch shortcut to behave in the same way as
> the dialog method?
>
> Thanks in advance,
> Mike
Previous Topic:How to organize manifest and create ant build file for a plugin from ANT itself?
Next Topic:Update Site Build All leaving files in projects
Goto Forum:
  


Current Time: Sun Jul 20 08:27:11 EDT 2025

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

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

Back to the top