[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] How to start a service from FinalLaunchSequence?
|
Thanks - that was what I needed!
--
Subs
On 5 Jul 2011, at 13:03, Branko Drevenšek wrote:
> On 07/05/2011 01:24 PM, Derek Morris wrote:
>> I should have pointed out that I am using CDT 8 (Indigo) and:
>> - according to Bug 326951 (comment 36) you should now create services in FinalLaunchSequence
> I was not aware of this. Oh well. (Also using Indigo, but extending jtag launchers which are seemingly outdated).
>> - at the point that FinalLaunchSequence is created, the launch isn't available - at least I can't find it...
> Checked it. It's not there by default, but in default implementation DsfSession is. So something like this:
>
> GdbLaunch launch = (GdbLaunch)getSession().getModelAdapter(ILaunch.class);
>
> launch.getServiceFactory().
>
> You have to crate getSession().
>
> Regards.
> Branko
>
>> --
>> Subs
>>
>>
>>
>>
>> On 5 Jul 2011, at 11:55, Branko Drevenšek wrote:
>>
>>> Hi.
>>>
>>> If you get GdbLaunch "launch" as parameter to your FinalLaunchSequence, you can then say something like launch.getServiceFactory().
>>> BTW: As far as I studied DSF you should probably create services in ServicesLaunchSequnce.
>>>
>>> At least that's how I do it (not sure if this is the supposed way).
>>>
>>> Regards.
>>> Branko
>>>
>>> On 07/05/2011 12:46 PM, Derek Morris wrote:
>>>> Hi,
>>>>
>>>> I am trying to start (create) a service from within my (overriden) FinalLaunchSequnce, but I can't find how to get the servicesFactory? Any ideas?
>>>>
>>>> Thanks
>>>> --
>>>> Subs
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> cdt-dev mailing list
>>>> cdt-dev@xxxxxxxxxxx
>>>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>>> _______________________________________________
>>> cdt-dev mailing list
>>> cdt-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev