Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » error when I validate an ecore with Eclipse Europa
error when I validate an ecore with Eclipse Europa [message #85564] Tue, 05 June 2007 20:56 Go to next message
Eclipse UserFriend
Originally posted by: william.briand.lirmm.fr

hi,
I have an ecore file which does not contain an error when I validate it
with Eclipse 3.2.1 but when I make the validation with Eclipse Europa, I
have the following error:"the default value literal must be a valid
literal of the attribute's type"
I do not manage to correct the error !
how to make ?
thank you very much
Re: error when I validate an ecore with Eclipse Europa [message #85578 is a reply to message #85564] Tue, 05 June 2007 21:41 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, William,

Please use the EMF newsgroup (to which I have replied) for questions about
EMF proper.

In EMF 2.3, the Ecore and GenModel editors now validate a considerable
number of well-formedness constraints. Your Ecore model is no more broken
than it was in EMF 2.2 (Eclipse 3.2). :-)

To resolve this problem, either assign a default value to your attribute
that conforms to the constraints of its type, or update the type's
constraints such that the default value is valid.

To find the particular attribute that is the problem, switch to the regular
tree-view page of the editor, select your root EPackage, and select
"Validate" on the context menu. This will create a problem marker and
decorate the problem attribute with a red X.

HTH,

Christian


william wrote:

> hi,
> I have an ecore file which does not contain an error when I validate it
> with Eclipse 3.2.1 but when I make the validation with Eclipse Europa, I
> have the following error:"the default value literal must be a valid
> literal of the attribute's type"
> I do not manage to correct the error !
> how to make ?
> thank you very much
Re: error when I validate an ecore with Eclipse Europa [message #606864 is a reply to message #85564] Tue, 05 June 2007 21:41 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, William,

Please use the EMF newsgroup (to which I have replied) for questions about
EMF proper.

In EMF 2.3, the Ecore and GenModel editors now validate a considerable
number of well-formedness constraints. Your Ecore model is no more broken
than it was in EMF 2.2 (Eclipse 3.2). :-)

To resolve this problem, either assign a default value to your attribute
that conforms to the constraints of its type, or update the type's
constraints such that the default value is valid.

To find the particular attribute that is the problem, switch to the regular
tree-view page of the editor, select your root EPackage, and select
"Validate" on the context menu. This will create a problem marker and
decorate the problem attribute with a red X.

HTH,

Christian


william wrote:

> hi,
> I have an ecore file which does not contain an error when I validate it
> with Eclipse 3.2.1 but when I make the validation with Eclipse Europa, I
> have the following error:"the default value literal must be a valid
> literal of the attribute's type"
> I do not manage to correct the error !
> how to make ?
> thank you very much
Previous Topic:error when I validate an ecore with Eclipse Europa
Next Topic:[Teneo] Replacing persisted elements of an object heirarchy..
Goto Forum:
  


Current Time: Fri Apr 26 05:01:52 GMT 2024

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

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

Back to the top