|
|
Re: [EMF Search] Problem in wizard [message #125695 is a reply to message #125649] |
Wed, 11 June 2008 08:24 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Lucas,
Given that any EAttribute x for which
x.getEAttributeType().isSerializeable() is true, you could always use
EcoreUtil.convertToString on its value (of course considering
multiplicities as well) so that pretty much any type of attribute could
be used for searching. I suppose that string-based ones are the most
likely ones to actually yield more interesting types of searches
though. Are you looking for EDataTypes with java.lang.String as their
instance class name? Even in the general case there, the
createFromString/convertToString could do decoding and encoding...
lucas bigeardel wrote:
> Henrik,
>
> for the moment, the code generation only relies on String/EString
> EAttributes.
>
> The wizard actually does a query on genmodel file looking for (and
> only for) String/EString EAttributes.
>
> So, in your case EMF Search code generation failure possibilities are :
> - the query didn't find any suitable feature (eg, you dont have any
> EClass with a String or EString attribute inside)
> - Its possibly a bug and I would be interested in getting your ecore
> models (or pertinent excerpt) to deeper analysis
>
> Let see if we can find a suitable & reusable solution for your need.
>
> regards,
>
> - Lucas
>
>
>
>> Hi,
>>
>> I have a bunch of EMF models that I like to enable search on. When I
>> right-click on the genmodels for my models and select the generation
>> wizard for EMF Search, I get the following error:
>> Querying EString EStructualFeature failed! Didn't found any valid
>> EStructualFeature.
>>
>> Any idea what I'm doing wrong?
>> Are there any constraints on the EMF model I need to fullfill?
>>
>> Regards
>>
>> Henrik
>>
>>
|
|
|
|
|
Re: [EMF Search] Problem in wizard [message #619233 is a reply to message #125649] |
Wed, 11 June 2008 08:24 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lucas,
Given that any EAttribute x for which
x.getEAttributeType().isSerializeable() is true, you could always use
EcoreUtil.convertToString on its value (of course considering
multiplicities as well) so that pretty much any type of attribute could
be used for searching. I suppose that string-based ones are the most
likely ones to actually yield more interesting types of searches
though. Are you looking for EDataTypes with java.lang.String as their
instance class name? Even in the general case there, the
createFromString/convertToString could do decoding and encoding...
lucas bigeardel wrote:
> Henrik,
>
> for the moment, the code generation only relies on String/EString
> EAttributes.
>
> The wizard actually does a query on genmodel file looking for (and
> only for) String/EString EAttributes.
>
> So, in your case EMF Search code generation failure possibilities are :
> - the query didn't find any suitable feature (eg, you dont have any
> EClass with a String or EString attribute inside)
> - Its possibly a bug and I would be interested in getting your ecore
> models (or pertinent excerpt) to deeper analysis
>
> Let see if we can find a suitable & reusable solution for your need.
>
> regards,
>
> - Lucas
>
>
>
>> Hi,
>>
>> I have a bunch of EMF models that I like to enable search on. When I
>> right-click on the genmodels for my models and select the generation
>> wizard for EMF Search, I get the following error:
>> Querying EString EStructualFeature failed! Didn't found any valid
>> EStructualFeature.
>>
>> Any idea what I'm doing wrong?
>> Are there any constraints on the EMF model I need to fullfill?
>>
>> Regards
>>
>> Henrik
>>
>>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04095 seconds