Bug 551324 - Allow to hide text in Quick Access / Find Actions tool contribution
Summary: Allow to hide text in Quick Access / Find Actions tool contribution
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.14 M3   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on: 500618 553172
Blocks: 547755 551494
  Show dependency tree
 
Reported: 2019-09-20 12:54 EDT by Lars Vogel CLA
Modified: 2019-11-21 05:00 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2019-09-20 12:54:59 EDT
Similar to the perspectives, we should allow the user to hide the text of the Find Action toolbar contributionb
Comment 1 Dani Megert CLA 2019-09-26 04:38:21 EDT
(In reply to Lars Vogel from comment #0)
> Similar to the perspectives, we should allow the user to hide the text of
> the Find Action toolbar contributionb
Actually, it must not show the text by default - like the perspective icons. Currently this is the only icon with text and it looks ugly.

But it should have a context menu called 'Show Text', so that people who prefer this, can enable it - like for the perspective icons.


NOTE: This bug looks very similar to bug 551139. Maybe even a duplicate.
Comment 2 Dani Megert CLA 2019-10-09 08:05:23 EDT
This really need to be fixed.
Comment 3 Lars Vogel CLA 2019-10-18 06:55:39 EDT
(In reply to Dani Megert from comment #2)
> This really need to be fixed.

What should be the default? Text shown or not shown?
Comment 4 Dani Megert CLA 2019-10-19 08:55:08 EDT
(In reply to Lars Vogel from comment #3)
> (In reply to Dani Megert from comment #2)
> > This really need to be fixed.
> 
> What should be the default? Text shown or not shown?
Not shown as this would be the ONLY text shown in the toolbar (as it is right now).
Comment 5 Eclipse Genie CLA 2019-10-28 07:29:54 EDT
New Gerrit change created: https://git.eclipse.org/r/151691
Comment 6 Lars Vogel CLA 2019-11-14 11:53:03 EST
Patch is ready and will hide the text by default. I did not implement the ability to remove this toolitem via the context menu as the other toolitems also do not provide this option. I even think the ability to show the text is overdesign but I guess we have to keep this option as some users may feel strong about removing it completely. 

I plan to merge the Gerrit once the verification build is done.
Comment 8 Dani Megert CLA 2019-11-17 05:24:38 EST
(In reply to Eclipse Genie from comment #7)
> Gerrit change https://git.eclipse.org/r/151691 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=a73a41fb2cf459af86d008bd016a890a756343a3
> 
Thanks Lars. Unfortunately it introduces a critical regression:
1. Choose to show text ==> works
2. Restart
==> NPE and magnifier button/icon is not shown. Clicking on the text does nothing and the menu to hide the text does not work either.
==> Find Actions functionality via mouse is forever lost for that workspace. Workaround is to use Ctrl+3.


There's also a minor issue: it looks like there's a separator above 'Show Text' in the menu.
Comment 9 Dani Megert CLA 2019-11-17 12:12:38 EST
(In reply to Dani Megert from comment #8)
> (In reply to Eclipse Genie from comment #7)
> > Gerrit change https://git.eclipse.org/r/151691 was merged to [master].
> > Commit:
> > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=a73a41fb2cf459af86d008bd016a890a756343a3
> > 
> Thanks Lars. Unfortunately it introduces a critical regression:
> 1. Choose to show text ==> works
> 2. Restart
> ==> NPE and magnifier button/icon is not shown. Clicking on the text does
> nothing and the menu to hide the text does not work either.
> ==> Find Actions functionality via mouse is forever lost for that workspace.
> Workaround is to use Ctrl+3.
> 
> 
> There's also a minor issue: it looks like there's a separator above 'Show
> Text' in the menu.
Fixed with https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=247232a7e9665b7b3254fa6476989081557c2198
Comment 10 Lars Vogel CLA 2019-11-18 02:18:28 EST
Thanks, Dani for fixing this.
Comment 11 Dani Megert CLA 2019-11-18 04:55:25 EST
(In reply to Dani Megert from comment #9)
> Fixed with
> https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=247232a7e9665b7b3254fa6476989081557c2198
> 
Verified in eclipse-SDK-I20191117-1800-win32-x86_64.

Note that this only fixed the NPE. The unwanted separator is covered by bug 553172.
Comment 12 Michael Keppler CLA 2019-11-20 14:26:59 EST
This fix has removed the ability to hide the "Find Actions" item completely. That is okay. However, that refactoring might be incomplete, since bug 537131 added a global preference to hide the former quick access.

I do have that preference enabled in my personal oomph setup, and it seems not to affect the visibility of "Find Actions" in a freshly installed I build. Nevertheless we may want to revert the changes of bug 537131 to be on the safe side.
Comment 13 Dani Megert CLA 2019-11-21 05:00:42 EST
(In reply to Michael Keppler from comment #12)
> This fix has removed the ability to hide the "Find Actions" item completely.
> That is okay. However, that refactoring might be incomplete, since bug
> 537131 added a global preference to hide the former quick access.
> 
> I do have that preference enabled in my personal oomph setup, and it seems
> not to affect the visibility of "Find Actions" in a freshly installed I
> build. Nevertheless we may want to revert the changes of bug 537131 to be on
> the safe side.
Please file a new bug report.