Bug 568039 - Consider adding a onDefaultSelect() to TextFactory
Summary: Consider adding a onDefaultSelect() to TextFactory
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.17   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-20 07:36 EDT by Lars Vogel CLA
Modified: 2020-10-20 07:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2020-10-20 07:36:22 EDT
To define a defaultSelection handler for a SWT.SEARCH field, I currently have to write:

	text = text(SWT.BORDER | SWT.SEARCH | SWT.ICON_SEARCH).message("Enter City")
				.layoutData(fillDefaults().grab(true, false).create()).create(parent);
		text.addSelectionListener(SelectionListener.widgetDefaultSelectedAdapter(e -> updateBrowser()));

Maybe we should add a onDefaultSelect method?