Programmatically generating a launch configuration [message #330263] |
Wed, 23 July 2008 12:46  |
Eclipse User |
|
|
|
Hi all,
Firstly, apologies if this is posted to the wrong newsgroup. Please
redirect me if this is the case.
My problem is that I would like to generate a launch configuration
programmatically from a plug-in. How can I do this?
I presume it is something to do with the Launch Manager - i.e.
org.eclipse.debug.core.DebugPlugin.getDefault().getLaunchMan ager() - but
I'm not sure how to instantiate a new Launch Configuration. Any ideas?
Many thanks,
Louis Rose.
|
|
|
|
Re: Programmatically generating a launch configuration [message #330393 is a reply to message #330264] |
Mon, 28 July 2008 06:01  |
Eclipse User |
|
|
|
John J Barton wrote:
> Louis Rose wrote:
>> Hi all,
>>
>> Firstly, apologies if this is posted to the wrong newsgroup. Please
>> redirect me if this is the case.
>>
>> My problem is that I would like to generate a launch configuration
>> programmatically from a plug-in. How can I do this?
>>
>> I presume it is something to do with the Launch Manager - i.e.
>> org.eclipse.debug.core.DebugPlugin.getDefault().getLaunchMan ager() -
>> but I'm not sure how to instantiate a new Launch Configuration. Any
>> ideas?
>>
>> Many thanks,
>> Louis Rose.
>
> Did you take a look at
> http://www.eclipse.org/articles/Article-Launch-Framework/lau nch.html
> ?
> Launch configs are stored as files in your workspace .metadata under
> org.eclipse.debug.core. From the LaunchManager you can get
> LaunchConfigurationTypes allow you get a LaunchConfigurationWorkingCopy
> with newInstance() then operate on it and call doSave() to write the
> file into the .metadata store. Then you will see it in the UI and you
> can launch on it.
>
> John
Hi John,
Many thanks; this is exactly what I was looking for.
Best regards,
Louis.
|
|
|
Powered by
FUDForum. Page generated in 0.03080 seconds