Display feature in Edition Table representation [message #1565815] |
Thu, 15 January 2015 08:57  |
Eclipse User |
|
|
|
Hello,
I created an edition table presentation in which I like do display features in the semantic line, but also in the "children" semantic lines.
I achieved to display the features in the children semantic lines by using 'Feature Parent Expresssion' in Advanced tab.
I used the following Acceleo expression;
[container.eContainer(Parent)/]
It works well, but, nothing is displayed in the parent semantic line.
Moreover, with this expression, errors appear along all the feature when I 'validate' the design:
The current element .... does not have the feature named : .....
Any ideas?
Regards,
Franck
|
|
|
Re: Display feature in Edition Table representation [message #1567224 is a reply to message #1565815] |
Fri, 16 January 2015 03:18   |
Eclipse User |
|
|
|
Hi Franck,
What do you means by displaying features in line?
In line we can only display EObject but not feature.
Best Regards.
Le 15/01/2015 14:57, Franck MIMET a écrit :
> Hello,
>
> I created an edition table presentation in which I like do display
> features in the semantic line, but also in the "children" semantic lines.
>
> I achieved to display the features in the children semantic lines by
> using 'Feature Parent Expresssion' in Advanced tab.
> I used the following Acceleo expression;
> [container.eContainer(Parent)/]
>
> It works well, but, nothing is displayed in the parent semantic line.
> Moreover, with this expression, errors appear along all the feature when
> I 'validate' the design:
> The current element .... does not have the feature named : .....
>
> Any ideas?
>
> Regards,
> Franck
--
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Display feature in Edition Table representation [message #1619526 is a reply to message #1567302] |
Mon, 16 February 2015 11:45  |
Eclipse User |
|
|
|
Hi Franck,
A bug currently prevents you to create your table (Bug 459771): the
featureName of a feature column must exist to allow the creation of a
cell in the table.
A workaround might exist in your case: do your father and child EClass
have a structural feature with the same name (or a common one,
EAttribute or EReference) ? If there is one, you could put its name as
featureName of your father_feature_column mapping and use the label
expression feature to compute the real label to display (mtl expression
or java service in this case).
Regards
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=459771
|
|
|
Powered by
FUDForum. Page generated in 0.03584 seconds