Display options for CrossTables [message #1721269] |
Tue, 26 January 2016 08:53 |
Felix Dorner Messages: 392 Registered: December 2015 |
Senior Member |
|
|
Hi,
I have a semantic model that looks somehow like this:
a : A
|
|-b1 : B
| |
| |-c1 : C
| |-c2 : C
|-b2 : B
|-b3 : B
Basically there's an A, which contains Bs which themselves contain Cs.
Exciting stuff :P. I have a line mapping for A, one for B and one for C.
I would now like to have an easy option for the user to be able to
deactivate the mapping for C, so that only As and Bs are visible. My
current approach would be to have a semantic candidates expression for C
which reads some preference to find out if Cs should be shown or not,
but maybe there is a more direct way by disabling the mapping for C
programatically?
Also, If I would like to add some widgets to the top of the table, say a
combobox, or some checkboxes, how would I approach that?
Felix
|
|
|
Re: Display options for CrossTables [message #1721314 is a reply to message #1721269] |
Tue, 26 January 2016 14:29 |
|
Le 26/01/2016 09:53, Felix Dorner a écrit :
> Hi,
>
Hi,
> I have a semantic model that looks somehow like this:
>
> a : A
> |
> |-b1 : B
> | |
> | |-c1 : C
> | |-c2 : C
> |-b2 : B
> |-b3 : B
>
> Basically there's an A, which contains Bs which themselves contain Cs.
> Exciting stuff :P. I have a line mapping for A, one for B and one for C.
> I would now like to have an easy option for the user to be able to
> deactivate the mapping for C, so that only As and Bs are visible. My
> current approach would be to have a semantic candidates expression for C
> which reads some preference to find out if Cs should be shown or not,
> but maybe there is a more direct way by disabling the mapping for C
> programatically?
You can manually Hide/Show Column (or Line) by using contextual menu
"Show/Hide > Hide/Sjow columns..." ("Show/Hide > Hide/Sjow lines...").
You can probably make a specific tool to Hide all C lines, by reusing
column/line visibility:
* org.eclipse.sirius.table.metamodel.table.DColumn.setVisible(boolean)
* org.eclipse.sirius.table.metamodel.table.DLine.setVisible(boolean)
*
org.eclipse.sirius.table.ui.tools.internal.editor.action.AbstractHideRevealAction<T>
>
> Also, If I would like to add some widgets to the top of the table, say a
> combobox, or some checkboxes, how would I approach that?
>
If you want to replace the "direct edit" cell (CellEditor), there is
currently no way to do that. It is automatically done by
org.eclipse.sirius.table.ui.tools.internal.editor.provider.DFeatureColumnEditingSupport.getBestCellEditor(EObject,
boolean).
> Felix
Regards,
--
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03518 seconds