| Summary: | Filter column doesn't work on Linux | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] MAT | Reporter: | Andrew Johnson <andrew_johnson> | ||||
| Component: | GUI | Assignee: | Andrew Johnson <andrew_johnson> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | brian_peacock | ||||
| Version: | 1.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Andrew Johnson
Does context menu->Columns->Edit value work? I don't have a Linux system to test. The code does in fact work, it's just the way it is displayed is somewhat misleading on Linux.
The field is in fact a textfield but it doesn't look like one. If the field is clicked, you can start typing characters and as soon as the first one appears the field turns into a textfield.
To make it appear (and behave) as expected, I set the Text to be a space and then the textfield is displayed:
RefinedResultViewer.activateEditor()
final Text text = new Text(composite, SWT.NONE);
text.setText(" ");
With this change the textfield appears as expected and can be typed into as normal. The space automatically gets removed so the textfield behaves as expected. This has been tested on Windows and doesn't cause any problems there. Created attachment 196411 [details]
Patch for UI filter textfield for Linux
Fix applied as described |