Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Wrong context in cross table cell(Selected line, expected cell)
Wrong context in cross table cell [message #1236939] Tue, 28 January 2014 07:54 Go to next message
Wilbert Alberts is currently offline Wilbert Alberts
Messages: 91
Registered: June 2010
Member
Hi,

I've created a model with a cross table representation where the cells are element based (e.g. a cell might refer to an entity in my model representing an edge from source to destination).

If I select the cell, I would have expected that the properties of the corresponding edge entity are shown in the properties view. However, it shows the properties of the line containing the model element representing the source of the edge. The label, shown in the cell, clearly indicates the edge.

Am I doing something wrong or is some additional effort needed to set the correct context of the elements who's properties are presented? (I tried Sirius 0.9 as delivered with Kepler as the 1.0 beta to be delivered with Luna.)

Greetings,
Wilbert.
Re: Wrong context in cross table cell [message #1237004 is a reply to message #1236939] Tue, 28 January 2014 10:55 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime Porhel
Messages: 83
Registered: July 2009
Member
Le 28/01/2014 13:54, Wilbert Alberts a écrit :
> Hi,

Hi Wilbert

>
> I've created a model with a cross table representation where the cells
> are element based (e.g. a cell might refer to an entity in my model
> representing an edge from source to destination).
>
> If I select the cell, I would have expected that the properties of the
> corresponding edge entity are shown in the properties view. However, it
> shows the properties of the line containing the model element
> representing the source of the edge. The label, shown in the cell,
> clearly indicates the edge.

I understand you have created a column mapping representing the target
of the edge, a line mapping representing the source and an
IntersectionMApping domain based, corresoonding to the edge semantic entity.

>
> Am I doing something wrong or is some additional effort needed to set
> the correct context of the elements who's properties are presented? (I
> tried Sirius 0.9 as delivered with Kepler as the 1.0 beta to be
> delivered with Luna.)

It sounds like a bug. I tried to create a similar Cross Table on Ecore
(line and column to display the classes of a package and an
IntersectionMapping to represent the EReference) and I observed the same
issue.

Could you report a bug on the Eclipse Sirius Bugzilla [1][2] ?

>
> Greetings,
> Wilbert.
>

Thank you for your feedback.

Regards,

Maxime

[1] https://bugs.eclipse.org/bugs/
[2] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
Re: Wrong context in cross table cell [message #1237264 is a reply to message #1237004] Wed, 29 January 2014 04:09 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert Alberts
Messages: 91
Registered: June 2010
Member
Reported bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=426863
Re: Wrong context in cross table cell [message #1237276 is a reply to message #1237264] Wed, 29 January 2014 04:33 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime Porhel
Messages: 83
Registered: July 2009
Member
Hi Wilbert,

Le 29/01/2014 10:09, Wilbert Alberts a écrit :
> Reported bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=426863

thanks for your detailled bug report.


You write that:
> When selecting a cell defined by 'Paris' and 'Amsterdam', I expected
> to be able to change the distance in the properties view. However, it
> shows the properties of Amsterdam in stead of the corresponding
> Connection entity.

It seems you shoud create a LabelEdit tool, as child of your
IntersectionMApping, to allow the user to direclty change the distance
value from the table [1]


Regards,

Maxime

[1]
http://www.eclipse.org/sirius/doc/specifier/tables/Tables.html#intersection_mapping_tools
Re: Wrong context in cross table cell [message #1237286 is a reply to message #1237276] Wed, 29 January 2014 04:51 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert Alberts
Messages: 91
Registered: June 2010
Member
Hi Maxime,

If I understand you correctly, your workaround allows me to change the distance in the table itself. That is sufficient for the example I provided. However, the real case I'm working at provides much more properties (for such connection) that can not be edited that simple in the cell directly.

Thanks anyway for you reply.

Greetings,
Wilbert.
Re: Wrong context in cross table cell [message #1237295 is a reply to message #1237286] Wed, 29 January 2014 05:19 Go to previous message
Maxime Porhel is currently offline Maxime Porhel
Messages: 83
Registered: July 2009
Member
Le 29/01/2014 10:51, Wilbert Alberts a écrit :
> Hi Maxime,

Hi Wilbert,

>
> If I understand you correctly, your workaround allows me to change the
> distance in the table itself. That is sufficient for the example I
> provided.

This is it.

> However, the real case I'm working at provides much more
> properties (for such connection) that can not be edited that simple in
> the cell directly.

You could add all these "connection" elements as additional semantic
elements of each line: their properties will be added to the properties
view when you select a line. It can be done with the "Associated
alements expression" [1] of the line mapping (Advanced tab). This can be
done for other types of mappings too [2]. Note that this can have
impacts on the default delete behavior.

Another solution could be to create an Edition table to manage the
properties if your "connections".

>
> Thanks anyway for you reply.
>
> Greetings,
> Wilbert.
>

Regards,

Maxime

[1]
http://www.eclipse.org/sirius/doc/specifier/tables/Tables.html#line_mappings
[2]
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#graphical_elements/Tables.html#line_mappings
Previous Topic:Transparent Diagram elements + Layout algorhitms
Next Topic:Tool creating
Goto Forum:
  


Current Time: Sat Aug 30 10:35:02 EDT 2014

Powered by FUDForum. Page generated in 0.01807 seconds