[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [recommenders-dev] Mapping ProposalKind to CompletionEvent
|
Hello Andreas,
<< Please tell us what you are trying to accomplish. What should this mapping be used for?
Often we can give you a better answer if we know what you are really trying to accomplish. >>
Okay, I have the following problem: at the method StatisticsPreferencePage#appendNumberOfCompletionsByCompletionKind (line 246),
I have "only" a ProposalKind enum and need some additional informations like sessionStarted, sessionEnded etc.
I have saw that the CompletionEvent object have these informations.
I thought my problem would be solved, if I could map the ProposalKind enum to a concrete CompletionEvent.
Other solutions?
Regards,
Tim
Am 27.05.2013 um 09:18 schrieb Andreas Sewe <andreas.sewe@xxxxxxxxxxxxxx>:
> Hello Timur,
>
>> it is possible to find the corresponding CompletionEvent to a ProposalKind?
>>
>> Code
>> example: StatisticsPreferencePage#appendNumberOfCompletionsByCompletionKind
>> At line 246 I have only the ProposalKind and need the corresponding
>> CompletionEvent.
>
> Please tell us what you are trying to accomplish. What should this
> mapping be used for? Often we can give you a better answer if we know
> what you are really trying to accomplish.
>
> As far as your original question goes: No, you cannot map from the
> ProposalKind enum to a concrete CompletionEvent; after all, there is a
> 1-to-n relation ship between ProposalKind and CompletionEvents. In fact,
> it's very likely that, say, multiple CompletioEvents have a kind of
> METHOD_REF.
>
> Hope this helps.
>
> Andreas
> --
> Codetrails UG (haftungsbeschränkt)
> The knowledge transfer company
>
> Robert-Bosch-Str. 7, 64293 Darmstadt
> Mobile: +49-170-811-3791
> http://www.codetrails.com/
>
> Managing Director: Dr. Marcel Bruch
> Handelsregister: Darmstadt HRB 91940
> _______________________________________________
> recommenders-dev mailing list
> recommenders-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/recommenders-dev