Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ExtendedMetaData
ExtendedMetaData [message #1049199] Thu, 25 April 2013 13:53 Go to next message
Pablo Silva is currently offline Pablo SilvaFriend
Messages: 28
Registered: May 2012
Location: Brazil
Junior Member

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/pictures/649755ca84cb74d9297b8885efebe8da.png

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/pictures/c05721d7ea88103d86a22f2264faa8c6.png

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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:Unordered EMap?
Next Topic:[Teneo] Problem with Audit on Teneo
Goto Forum:
  


Current Time: Tue Mar 19 09:42:04 GMT 2024

Powered by FUDForum. Page generated in 0.02868 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top