Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Display feature in Edition Table representation
Display feature in Edition Table representation [message #1565815] Thu, 15 January 2015 13:57 Go to next message
Franck MIMET is currently offline Franck MIMETFriend
Messages: 28
Registered: August 2014
Junior Member
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 08:18 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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 09:15 Go to previous messageGo to next message
Franck MIMET is currently offline Franck MIMETFriend
Messages: 28
Registered: August 2014
Junior Member
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 16:45 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Relation-based Edge Sources
Next Topic:Customize Editing Tables...
Goto Forum:
  


Current Time: Fri Apr 19 16:50:20 GMT 2024

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

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

Back to the top