Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EcoreValidator - EClassifier::WellFormedInstanceTypeName constraint
EcoreValidator - EClassifier::WellFormedInstanceTypeName constraint [message #418493] Thu, 17 April 2008 10:10 Go to next message
Adolfo Sanchez-Barbudo Herrera is currently offline Adolfo Sanchez-Barbudo HerreraFriend
Messages: 260
Registered: July 2009
Senior Member
Hi Ed,

Working on a QVTo-EValidator based on OCL-EValidator which is based on
Ecore one, I had the following error:

Validator-ERROR in org.eclipse.emf.ecore.model; IfExp.qvto:1 : The
instance type name 'null' is not well formed.

Which certainly didn't help me too much to know what happened. What
about including additional information in the error message such as the
name of the Eclassifier which violate the constraint?

Regards,
Adolfo.
Re: EcoreValidator - EClassifier::WellFormedInstanceTypeName constraint [message #418501 is a reply to message #418493] Thu, 17 April 2008 11:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Adolfo,

Comments below.


Adolfo Sánchez-Barbudo Herrera wrote:
> Hi Ed,
>
> Working on a QVTo-EValidator based on OCL-EValidator which is based on
> Ecore one, I had the following error:
>
> Validator-ERROR in org.eclipse.emf.ecore.model; IfExp.qvto:1 : The
> instance type name 'null' is not well formed.
>
> Which certainly didn't help me too much to know what happened. What
> about including additional information in the error message such as
> the name of the Eclassifier which violate the constraint?
The Diagnostic.getData() has a reference to the object for which this
error applies and all the code is factored in such a way that clients
can form their own messages. Generally we expect markers to be created
and that clicking on the marker will navigate directly to the offending
instance so it can be corrected. Consider Java errors such as "Syntax
error, insert ";" to complete statement" which also don't indicate the
file, class, or method in which the problem appears or any other
contextual information because it's generally expecting the context
information will be available in whatever view shows the error...
>
> Regards,
> Adolfo.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EcoreValidator - EClassifier::WellFormedInstanceTypeName constraint [message #418506 is a reply to message #418501] Thu, 17 April 2008 11:59 Go to previous message
Adolfo Sanchez-Barbudo Herrera is currently offline Adolfo Sanchez-Barbudo HerreraFriend
Messages: 260
Registered: July 2009
Senior Member
I see..It makes sense.

For my concrete use, in which I throw a lot of information in console
derived from a lot of test cases, would be helpful. However I should not
modify my validator because it will be used my textual and Sample Core
Editor as well, and the markers could get me to the erroneous class.

Thank you very much !!!

Cheers,
Adolfo.


Ed Merks escribió:
> Adolfo,
>
> Comments below.
>
>
> Adolfo Sánchez-Barbudo Herrera wrote:
>> Hi Ed,
>>
>> Working on a QVTo-EValidator based on OCL-EValidator which is based on
>> Ecore one, I had the following error:
>>
>> Validator-ERROR in org.eclipse.emf.ecore.model; IfExp.qvto:1 : The
>> instance type name 'null' is not well formed.
>>
>> Which certainly didn't help me too much to know what happened. What
>> about including additional information in the error message such as
>> the name of the Eclassifier which violate the constraint?
> The Diagnostic.getData() has a reference to the object for which this
> error applies and all the code is factored in such a way that clients
> can form their own messages. Generally we expect markers to be created
> and that clicking on the marker will navigate directly to the offending
> instance so it can be corrected. Consider Java errors such as "Syntax
> error, insert ";" to complete statement" which also don't indicate the
> file, class, or method in which the problem appears or any other
> contextual information because it's generally expecting the context
> information will be available in whatever view shows the error...
>>
>> Regards,
>> Adolfo.
Previous Topic:org.eclipse.emf.codegen.ecore.generatorAdapters extension point
Next Topic:Re: Generic form editor for EMF EObjects
Goto Forum:
  


Current Time: Sat Apr 27 03:59:14 GMT 2024

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

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

Back to the top