Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to resolve this error?
How to resolve this error? [message #1059883] Wed, 22 May 2013 05:55 Go to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
Warn: The generic type associated with the 'DataCollection' classifier should have 1 type argument to match the number of type parameters of the classifier.
Error: The typed element must have a type


here is a picture of my model:
index.php/fa/14997/0/

i defined DataCollection as generic F, which extends GUID.
and all of these informations are defined
any ideas whats going wrong?

thanks in advance
Re: How to resolve this error? [message #1059885 is a reply to message #1059883] Wed, 22 May 2013 06:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

Comments below.

On 22/05/2013 7:56 AM, Ludwig Moser wrote:
> Warn: The generic type associated with the 'DataCollection' classifier should have 1 type argument to match the number of type parameters of the classifier.
I don't see a use of DataCollection in your screen shot. To specify the
type arguments at the point of use, ensure that Sample Ecore Editor ->
Show Generics is enabled, and use "New Child -> EGeneric Type Argument"
to create the arguments; they'll start out as a wildcard but via the
properties you can reference an EClassifier or an ETypeArgument.
> Error: The typed element must have a type
I don't see what causes this error in the screen capture. Which typed
element doesn't have a type?
>
> here is a picture of my model:
>
>
> i defined DataCollection as generic F, which extends GUID.
> and all of these informations are defined
> any ideas whats going wrong?
>
> thanks in advance


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to resolve this error? [message #1059890 is a reply to message #1059885] Wed, 22 May 2013 06:42 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
my model is pretty big, so i just copied the part, which i thought is of interest.
the model is split into two ecores. one defining the data classes and one defining my controller.

i cannot find ANY elements without type definition.
generics are enabled and i added them exactly the way you described above.

note: first i had one single ecore file which was generating with genmodel fine!
then i had to split it to data & controller
generating the data model for texo works fine.
but i do not even get the chance to generate the model with emf because it moans about the DataCollection (which was fine before i split up?!)

i compared the two ecores and cannot find any differences! (but references to the GUID, which is now in another ecore)

if you want i can email you the two ecore files (i am not allowed to put em here in the forum.)
Re: How to resolve this error? [message #1059899 is a reply to message #1059890] Wed, 22 May 2013 06:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

Comments below.

On 22/05/2013 8:42 AM, Ludwig Moser wrote:
> my model is pretty big, so i just copied the part, which i thought is
> of interest.
> the model is split into two ecores. one defining the data classes and
> one defining my controller.
>
> i cannot find ANY elements without type definition.
The where is the error? If it's in the problems view, double clicking
it should navigate to the object with the problem...
> generics are enabled and i added them exactly the way you described
> above.
>
> note: first i had one single ecore file which was generating with
> genmodel fine!
> then i had to split it to data & controller
> generating the data model for texo works fine.
> but i do not even get the chance to generate the model with emf
> because it moans about the DataCollection (which was fine before i
> split up?!)
The generator will turn to a tab with the problem indications, but you
can turn to the main tab and still generate. You can also tell it to
create problem markers, or you can invoke Validate on each Ecore model
in the Sample Ecore Editor which will also produce markers you can use
to locate the source of the problems.
>
> i compared the two ecores and cannot find any differences! (but
> references to the GUID, which is now in another ecore)
>
> if you want i can email you the two ecore files (i am not allowed to
> put em here in the forum.)
You should be able to locate the problems using Validate in the editor.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to resolve this error? [message #1059913 is a reply to message #1059899] Wed, 22 May 2013 07:29 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
both ecore files report no errors nor warnings when i call validate!
the genmodel shows me errors & warnings.

index.php/fa/15002/0/
Re: How to resolve this error? [message #1059924 is a reply to message #1059913] Wed, 22 May 2013 08:14 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
i tried to generate the code which results in an exception

index.php/fa/15003/0/
Re: How to resolve this error? [message #1059925 is a reply to message #1059913] Wed, 22 May 2013 08:11 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Are you using the right Validate? If you have WTP installed, it
contributes another absolutely useless menu entry; almost seems designed
to cause trouble.

Regards

Ed Willink

On 22/05/2013 08:29, Ludwig Moser wrote:
> both ecore files report no errors nor warnings when i call validate!
> the genmodel shows me errors& warnings.
>
>
Re: How to resolve this error? [message #1059928 is a reply to message #1059924] Wed, 22 May 2013 08:27 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
arr, you are right, there are two validate (did not notice that until you point me on it now :-/)
as i now use the right one, i get pointed to the error.
and was able to resolve it within minutes (i lost some days due this damn second validate entry)

thanks for your help ed.

isn't it possible to remove the other validate when EMF is open? RFC *hint.hint* (i do remove other generated menues etc in my app too)
Re: How to resolve this error? [message #1059929 is a reply to message #1059928] Wed, 22 May 2013 08:28 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
or call the emf validate different (eg validate EMF model?)
Re: How to resolve this error? [message #1059937 is a reply to message #1059928] Wed, 22 May 2013 08:42 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I couldn't possibly comment further than observing the date on which
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197617 was raised.

Regards

Ed Willink


On 22/05/2013 09:27, Ludwig Moser wrote:
> arr, you are right, there are two validate (did not notice that until
> you point me on it now :-/)
> as i now use the right one, i get pointed to the error.
> and was able to resolve it within minutes (i lost some days due this
> damn second validate entry)
>
> thanks for your help ed.
>
> isn't it possible to remove the other validate when EMF is open? RFC
> *hint.hint* (i do remove other generated menues etc in my app too)
Previous Topic:Customized Edit and Editor generated code that suppress some model objects
Next Topic:[Edapt] Factory problems ...
Goto Forum:
  


Current Time: Fri Apr 26 03:29:03 GMT 2024

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

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

Back to the top