The Trunk: PreferenceBrowser-mt.90.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: PreferenceBrowser-mt.90.mcz

commits-2
Marcel Taeumel uploaded a new version of PreferenceBrowser to project The Trunk:
http://source.squeak.org/trunk/PreferenceBrowser-mt.90.mcz

==================== Summary ====================

Name: PreferenceBrowser-mt.90
Author: mt
Time: 15 August 2019, 1:26:37.245487 pm
UUID: cf28471c-38ae-3946-bf76-0e01b68955e4
Ancestors: PreferenceBrowser-mt.89

In preference browser, adds search for code expressions (i.e., class name or selector for pragma preferences).

=============== Diff against PreferenceBrowser-mt.89 ===============

Item was changed:
  ----- Method: PreferenceBrowser>>searchPreferencesFor: (in category 'preferences search') -----
  searchPreferencesFor: pattern
  | result |
  result := pattern asString asLowercase withBlanksTrimmed.
  result ifEmpty: [^self].
  searchResults := self allPreferences select: [:aPreference |
+ ((aPreference name includesSubstring: result caseSensitive: false)
+ or: [aPreference helpString includesSubstring: result caseSensitive: false])
+ or: [aPreference codeString includesSubstring: result caseSensitive: false] ].
- (aPreference name includesSubstring: result caseSensitive: false) or:
- [aPreference helpString includesSubstring: result caseSensitive: false]].
  self selectSearchResultsCategory.
  self lastExecutedSearch: pattern.
  !