Bug 487025 - Allow user to search values within columns
Summary: Allow user to search values within columns
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Table (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-02-02 11:28 EST by William Piers CLA
Modified: 2016-05-11 05:10 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Piers CLA 2016-02-02 11:28:13 EST
The quick outline is helpful to navigate into a table. Its filter uses the tree elements labels.

A similar action could be defined in order to base search on cell values. 

Proposed solution :
A popup similar to the QuickOutline can be displayed when a cell is selected. 

The selected column (related to the selected cell) can be used to parametrize the elements displayed by the popup : if a line contains a value for the current column, it appears in the list.

In the proposals list, we can display the values without structural elements (i.e. flat list instead of tree) in order to only display elements with a valid cell : those we can filter.

The list displays the values like this :
<element_icon> <cell_value> (<element_label>)
It is more readable for the when attribute are booleans for instance.
Comment 1 Pierre-Charles David CLA 2016-02-03 03:42:14 EST
There is already support for multiple outline pages (cycling between them is done by repeated Ctrl-o). Currently tables have two hard-coded outline pages, see TableQuickOutlineHandler.createDescriptor(DTableEditor).

There is no API or extension point available to add more without changing Sirius right now. Either this is an opportunity to add such an extension point, or simply a third hard-coded outline page. See org.eclipse.sirius.common.ui.tools.api.dialog.quickoutline.QuickOutlinePageDescriptor for the API that needs to be implemented.
Comment 2 William Piers CLA 2016-02-03 03:46:55 EST
The current quick outline is launched on CTRL + O. Hitting CTRL + O changes the popup in order to select a given column.

The feature described in the previous message could take place as third CTRL + O, to give the following options to the user :
1st CTRL + O : look for line (as is)
2nd CTRL + O : look for column (as is)
3rd CTRL + O : look for cell (new)
Comment 3 Florian Barbin CLA 2016-05-11 05:10:19 EDT
The general idea is interesting but the enhancement still have to be discussed to define a more specific scope. Nevertheless, we have currently not planned to work on it in the following releases.