Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » [Feature] Draw table cells also for "empty" cells
[Feature] Draw table cells also for "empty" cells [message #1463236] Thu, 06 November 2014 10:48 Go to next message
Johan Van Noten is currently offline Johan Van NotenFriend
Messages: 87
Registered: July 2009
Member
Scenario:
* Create a cross-table
* Define an intersection mapping

Problem:
* We wanted to put some text/color the background of those cells that do not have a matching object. Unfortunately this is impossible, because all layout settings are ignored for "non-matching" cells.

Desired feature:
* Also evaluate label expression, background colors etc for cells that do not have matching semantic element. Potentially a user is not requiring this semantic element to be present, but he could be diriving this from the line's or column's semantic object.

Workaround:
As a workaround, we could return a valid semantic object for each column anyway and then use the intersection mapping to evaluate the presence/absence of a real intersection. This feels unnatural to the user imho.
Re: [Feature] Draw table cells also for "empty" cells [message #1463480 is a reply to message #1463236] Thu, 06 November 2014 15:58 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Hi.

Thanks for the feedback; could you open a Bugzilla issue [1] for this?
Feature requests are tracked and discusses there, not in the forum.

Thanks in advance.

[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius

Le 06/11/2014 11:48, Johan Van Noten a écrit :
> Scenario:
> * Create a cross-table
> * Define an intersection mapping
>
> Problem:
> * We wanted to put some text/color the background of those cells that do
> not have a matching object. Unfortunately this is impossible, because
> all layout settings are ignored for "non-matching" cells.
>
> Desired feature:
> * Also evaluate label expression, background colors etc for cells that
> do not have matching semantic element. Potentially a user is not
> requiring this semantic element to be present, but he could be diriving
> this from the line's or column's semantic object.
>
> Workaround:
> As a workaround, we could return a valid semantic object for each column
> anyway and then use the intersection mapping to evaluate the
> presence/absence of a real intersection. This feels unnatural to the
> user imho.
>


--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [Feature] Draw table cells also for "empty" cells [message #1463497 is a reply to message #1463236] Thu, 06 November 2014 16:18 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

Le 06/11/2014 11:48, Johan Van Noten a écrit :
> Scenario:
> * Create a cross-table
> * Define an intersection mapping
>
> Problem:
> * We wanted to put some text/color the background of those cells that do
> not have a matching object. Unfortunately this is impossible, because
> all layout settings are ignored for "non-matching" cells.
>
> Desired feature:
> * Also evaluate label expression, background colors etc for cells that
> do not have matching semantic element. Potentially a user is not
> requiring this semantic element to be present, but he could be diriving
> this from the line's or column's semantic object.
>
> Workaround:
> As a workaround, we could return a valid semantic object for each column
> anyway and then use the intersection mapping to evaluate the
> presence/absence of a real intersection. This feels unnatural to the
> user imho.
>

Did you try to add styles on column and line mappings ? [1][2][3]
Note that the line style has the priority on the column style. And if
there is a cell corresponding to an intersection, the style of the
intersection mapping is used.
You also have the possibility to define conditional styles for Line,
Column and Intersection mappings.

Regards


--
Maxime - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius

--
[1]
https://www.eclipse.org/sirius/doc/specifier/tables/Tables.html#line_style
[2]
https://www.eclipse.org/sirius/doc/specifier/tables/Tables.html#element_column_mapping
[3]
https://www.eclipse.org/sirius/doc/specifier/tables/Tables.html#intersection_mapping


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:[Feature] Navigate between model explorer & diagram elements
Next Topic:sirius tutorial or example based on acceleo created model
Goto Forum:
  


Current Time: Wed Apr 24 15:34:27 GMT 2024

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

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

Back to the top