Launch Questions [message #307938] |
Wed, 06 September 2006 15:41  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05992 seconds