Skip to main content



      Home
Home » Eclipse Projects » Sirius » Display feature in Edition Table representation
Display feature in Edition Table representation [message #1565815] Thu, 15 January 2015 08:57 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #1567302 is a reply to message #1567224] Fri, 16 January 2015 04:15 Go to previous messageGo to next message
Eclipse UserFriend
Hi Esteban,

My aim is to display features (ie. information from the acceleo command feature:..) as illustrated below:

                                        father_feature_column         child_feature_column
father                                       value_father
child1                                       value_father                 value_child1
child2                                       value_father                 value_child2

father and child are defined in an ecore model, such as father has a reference to childs.

As you can see, value_father which belongs to the father is displayed in all the columns, and value_childx are displayed only for childs and is different between them.

I achieved only to display for father or for childs, but not for both of them.

I hope that it is clearer.

Regards,
Franck
Re: Display feature in Edition Table representation [message #1619526 is a reply to message #1567302] Mon, 16 February 2015 11:45 Go to previous message
Eclipse UserFriend
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
Previous Topic:Relation-based Edge Sources
Next Topic:Customize Editing Tables...
Goto Forum:
  


Current Time: Mon May 19 18:27:12 EDT 2025

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

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

Back to the top