redefining types in an Xpand project [message #517132] |
Fri, 26 February 2010 06:16  |
Eclipse User |
|
|
|
I want to make a simple test, that would generate
Typedef int Cap;
class Plane {
Cap cap;
}
Everything works but for one thing.
In my model.xmi, I created a Datatype Cap, which I'd like to be an Integer, just renamed.
Looking at the documentation, it seems to be called a parameterized type, but I just don't understand how to create/make/use it.
Regards
Maxime
PS : I'm sorry for having been asking what are basic ans dumb questions for the last few days, I just hope there won't be many more.
[Updated on: Fri, 26 February 2010 06:17] by Moderator
|
|
|
|
Re: redefining types in an Xpand project [message #517156 is a reply to message #517136] |
Fri, 26 February 2010 07:19   |
Eclipse User |
|
|
|
>I have not enought information for an answer.
>What metamodeling framework do you use:
>EMF, UML2 ?
I am using M2T, ecore, and I created an Xpand Project, with a sample (the my.generator.project that is used as an example).
>Is a 'parameterized type' part of your (meta-)metamodell,
>or a type of your DSL?
It's a type for my DSL. Right now I'm trying to create a Cap Type, that is just an alias for Integer (documentation seems to be calling that a 'parameterized type').
>Can you provide a more detailled example?
Not really, i'm trying to keep things simple now, before I go to more difficult things.
My model has a Datatype Cap, a Datatype Integer (never used), and an Entity Plane that has a Feature cap (which type I want to be of type Cap)
Thanks
Regards
Maxime
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28437 seconds