manipulate textual model [message #631246] |
Wed, 06 October 2010 12:28  |
Eclipse User |
|
|
|
when i define an element in grammar like this:
container: "container{"
elements+=el*
"}";
el: "element" name=ID opposite=[el];
is possible to generate automatically the opposite element without typing the other element?
i mean...in model i will have:
container{
element el1 opposite el2
element el2 opposite el1
....i would set the opposite automatically or if the opposite not exist to create it,,,
=====================
another problem i have:
is possible to set the opposite for example without show it? i mean without showing the opposite text in model?
thx !!
|
|
|
Re: manipulate textual model [message #631626 is a reply to message #631246] |
Fri, 08 October 2010 04:59  |
Eclipse User |
|
|
|
1) I'd rather use a quickfix than automatically adding the other side.
Feels more Eclipse-like and less magical. See docs on quickfixes for
details.
2) As we consider the textual format the primary persistence format, all
information about the model has to be in there or to be automatically
derivable. So I guess the answer is no.
Am 06.10.10 18:28, schrieb chuck:
> when i define an element in grammar like this:
>
> container: "container{"
> elements+=el*
> "}";
>
> el: "element" name=ID opposite=[el];
>
> is possible to generate automatically the opposite element without
> typing the other element?
>
> i mean...in model i will have:
>
> container{
>
> element el1 opposite el2
>
> element el2 opposite el1
> ...i would set the opposite automatically or if the opposite not exist
> to create it,,,
> =====================
> another problem i have:
>
> is possible to set the opposite for example without show it? i mean
> without showing the opposite text in model?
>
> thx !!
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
Powered by
FUDForum. Page generated in 0.05386 seconds