Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Primitive types
Primitive types [message #418430] Tue, 15 April 2008 23:23 Go to next message
Eclipse UserFriend
Originally posted by: comouraf-lixo.yahoo.fr

Hi,

I have a profile with some UML-inspired primitive types (like
UnlimitedNatural, Real, etc.). However, when I generate the classes, there
are many errors complaining about non-existing types. For the lack of a
better idea, I tried to set up the "instanceClassName" attribute with an
existing java primitive type, imagining that the generator would use the
java types instead, but it did not work. So, my question is: how could I
force the generator to replace model datatypes with "good" java types (for
example, Integer for UnlimitedNatural, etc.)?

Thanks for any clue,

César
Re: Primitive types [message #418432 is a reply to message #418430] Tue, 15 April 2008 23:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
César,

It sounds like a UML question to me, so it's best to ask it on the UML
newsgroup, which I've added to the "to" list of the reply. If an
EDataType has a proper instanceClassName, like float, or int, that will
be used by the generator. Just have a look at the Ecore model itself at
things like EInt or EFloat as examples.


kaiserlautern wrote:
> Hi,
>
> I have a profile with some UML-inspired primitive types (like
> UnlimitedNatural, Real, etc.). However, when I generate the classes,
> there are many errors complaining about non-existing types. For the
> lack of a better idea, I tried to set up the "instanceClassName"
> attribute with an existing java primitive type, imagining that the
> generator would use the java types instead, but it did not work. So,
> my question is: how could I force the generator to replace model
> datatypes with "good" java types (for example, Integer for
> UnlimitedNatural, etc.)?
>
> Thanks for any clue,
>
> César


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Primitive types [message #418510 is a reply to message #418432] Thu, 17 April 2008 13:13 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Ed, C
Previous Topic:Re: Generic form editor for EMF EObjects
Next Topic:[newbie] editor and data relation
Goto Forum:
  


Current Time: Thu Apr 25 08:14:13 GMT 2024

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

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

Back to the top