I just started working on an eclipse RCP application in my company and search now for following component:
In the eclipse preference dialog is a text input field with a eraser which clears the text box (see image).

Is there a component in eclipse RCP which does exactly that? Or one where I can set an image in a text input field, so I can implement just the functionality.
Or have I to write my own component extending from Text?
Thanks.
Eclipse does not offer such a component, so you will have to implement one yourself.
But I wouldn’t extend
Textfor this. Simply create aCompositewithSWT.BORDERstyle, and aTextandButtonas children. If you don’t give theTexta border, it looks like the button is within the text box. Instead of theButtonyou could use aToolBarwith a singleToolItem, both with the SWT.FLAT style. This will look much better than a regular button.