Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Validation} Changing default validation messages
[EMF Validation} Changing default validation messages [message #667919] Mon, 02 May 2011 18:54 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Hello,

Using EMF Validation to validate model I get error messages such as
Quote:

The feature 'blah' of 'blah' with 0 values must have at least 1 values


This message might be confusing to user, is there anyway I can override the error message for particular element/attribute with custom message? In a schema perhaps?

thanks,
Alex
Re: [EMF Validation} Changing default validation messages [message #668089 is a reply to message #667919] Tue, 03 May 2011 16:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Alex,

You'd need to extend the validator, e.g., EObjectValidator and override
the getString (or getResourceLocator()).


Alex Kravets wrote:
> Hello,
>
> Using EMF Validation to validate model I get error messages such as
> Quote:
>> The feature 'blah' of 'blah' with 0 values must have at least 1 values
>
> This message might be confusing to user, is there anyway I can
> override the error message for particular element/attribute with
> custom message? In a schema perhaps?
>
> thanks,
> Alex


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [EMF Validation} Changing default validation messages [message #668116 is a reply to message #668089] Tue, 03 May 2011 19:50 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Thanks Ed!
Previous Topic:[EEF] Update editor when semantic element change
Next Topic:[EMF] two models, using only one editor
Goto Forum:
  


Current Time: Thu Apr 18 15:51:33 GMT 2024

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

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

Back to the top