Community
Participate
Working Groups
This should be a placeholder text like "Snipmatch" or "Snipmatch search" that is styled differently and automatically removed once the user starts typing. Unfortunately, the StyledText component we use here doesn't have the setMessage() method that a normal SWT text field defines for just that use case. We would have to implement this functionality on our own.
I'm not sure why we used a styled text widget at all. Can we replace it by a simple text widget instead?
Look at this gerrit change: https://git.eclipse.org/r/#/c/26148/ This changes the StyledText to a Text and sets a placeholder message. There are at least two issues with this change which i discussed there. Marcel: What's the priority for this one?
Created attachment 245167 [details] Search box Placeholder Are you expecting something like this? Since StyledText doesn't have a functionality like that, we should implant an our own way like Johannes's change. Anyway, what is the status of this change now?
(In reply to Madhuranga Lakjeewa from comment #3) > Created attachment 245167 [details] > Search box Placeholder > > Are you expecting something like this? Yes, that looks like what we imagined. > Since StyledText doesn't have a functionality like that, we should implant > an our own way like Johannes's change. Anyway, what is the status of this > change now? It's up for grabs, i.e., it would be great to have this implemented, but Johannes or I won't be able to do it. So, if you would like to give it a try, please go ahead. We would be happy to review your contribution in Gerrit then.
I pushed a patch on grrit[1]. [1] https://git.eclipse.org/r/#/c/35773/