ExtendedMetaData [message #1049199] |
Thu, 25 April 2013 13:53 |
|
Hi guys,
I have ecore metamodel and I needed to create a
EDataType to validate the field name. So, I created
a annotation ExtendedMetaData. You can see below:
This works when I generate my gmf editor. But the message that
appears when I validate it it isn't that I need. Look:
I need to customize that message "The feature 'name' of ..." for a specific message.
This way, I would like to know if can I do that? If yes, how? In OCL I can put annotations with the specific message, for ExtendMetaData Is it possible too?
Please, forgive me about English, I'm just learning yet.
Thank you for your help.
Regards Pablo
|
|
|
Re: ExtendedMetaData [message #1049781 is a reply to message #1049199] |
Fri, 26 April 2013 09:02 |
Ed Merks Messages: 33107 Registered: July 2009 |
Senior Member |
|
|
Pablo,
Sorry, no, there's no way to customize the message via extended meta
data. You'd have to define a named constraint on the EDataType and
specialize the generated validator for such a purpose.
On 25/04/2013 3:53 PM, Pablo Silva wrote:
> Hi guys,
>
> I have ecore metamodel and I needed to create a
> EDataType to validate the field name. So, I created
> a annotation ExtendedMetaData. You can see below:
>
> http://www.crazzy.com.br/upload/upload-img
>
> This works when I generate my gmf editor. But the message that
> appears when I validate it it isn't that I need. Look:
>
> http://www.crazzy.com.br/upload/upload-img
>
> I need to customize that message "The feature 'name' of ..." for a
> specific message.
> This way, I would like to know if can I do that? If yes, how? In OCL I
> can put annotations with the specific message, for ExtendMetaData Is
> it possible too?
>
>
> Please, forgive me about English, I'm just learning yet.
>
> Thank you for your help.
>
> Regards Pablo
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02868 seconds