[xtext] abstract types [message #46560] |
Sat, 30 May 2009 03:55  |
Eclipse User |
|
|
|
Hi,
Would it make sense to mark some types in the generated Ecore model as
abstract? As for instance the type 'Type' generated from the example
grammar:
Model :
(imports+=Import)*
(elements+=Type)*;
Import :
'import' importURI=STRING;
Type:
DataType | Class;
...
As I remember it this wasn't possible in oAW Xtext, but I think this
should be possible in TMF Xtext.
Regards,
--knut
|
|
|
Re: [xtext] abstract types [message #46589 is a reply to message #46560] |
Sat, 30 May 2009 04:45  |
Eclipse User |
|
|
|
Hi Knut,
I like your suggestion although I don't think it will make it into Xtext
0.7.0. Please file a bug (an provide a patch ;-).
It is currently possible to use the IXtext2EcorePostProcessor to mark
"Type" as abstract.
Regards,
Sebastian
Am 30.05.2009 9:55 Uhr, schrieb Knut Wannheden:
> Hi,
>
> Would it make sense to mark some types in the generated Ecore model as
> abstract? As for instance the type 'Type' generated from the example
> grammar:
>
> Model :
> (imports+=Import)*
> (elements+=Type)*;
>
> Import :
> 'import' importURI=STRING;
>
> Type:
> DataType | Class;
>
> ...
>
> As I remember it this wasn't possible in oAW Xtext, but I think this
> should be possible in TMF Xtext.
>
> Regards,
>
> --knut
>
|
|
|
Powered by
FUDForum. Page generated in 0.04904 seconds