From 440bbde89525c50a64591b8588400db8985638eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A1n=20Morales=20Durand?= Date: Fri, 20 Sep 2024 21:11:09 +0200 Subject: [PATCH 1/2] Update the Browser search presenter with search modes. --- .../StBrowserSearchPresenter.class.st | 76 ++++++++++++++++--- 1 file changed, 64 insertions(+), 12 deletions(-) diff --git a/src/NewTools-Core/StBrowserSearchPresenter.class.st b/src/NewTools-Core/StBrowserSearchPresenter.class.st index 47f7e79d..fa6c960c 100644 --- a/src/NewTools-Core/StBrowserSearchPresenter.class.st +++ b/src/NewTools-Core/StBrowserSearchPresenter.class.st @@ -1,5 +1,7 @@ " -I am a presenter that gets a list of elements and that allows one to select one (or multiple if the #multipleSelection option is enabled). +Provides a searchable list of classes, and options to configure the search mode (substring search (default), regular expression, exact). The search mode can be combined with case-sensitiveness. + +Multiple classes can be selected if the #multipleSelection option is enabled. " Class { #name : 'StBrowserSearchPresenter', @@ -7,7 +9,8 @@ Class { #instVars : [ 'items', 'itemsList', - 'searchField' + 'searchField', + 'searchOptions' ], #category : 'NewTools-Core-Calypso', #package : 'NewTools-Core', @@ -41,7 +44,9 @@ StBrowserSearchPresenter class >> exampleConfiguringPresenterForMultipleSelectio StBrowserSearchPresenter class >> open [