Skip to content

Commit

Permalink
Adapt application hooks to conform Spec application rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernán Morales Durand committed Nov 2, 2024
1 parent 5cf0dcf commit f0536fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ StSettingsAbstractPresenter >> sectionTitleString [
StSettingsAbstractPresenter >> settingsTree [
"Answer the receiver's <StSettingsTree>, the settings model"

^ self application settingsTree.
^ self application propertyAt: #settingsTree.
]
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ StSettingsCategoryItemPresenter >> defaultLayout [
StSettingsCategoryItemPresenter >> iconMapAt: aString [
"Answer a <Symbol> representing an icon selector matching aString"

^ self application iconMapAt: aString
^ (self application propertyAt: #iconMap) at: aString
]

{ #category : 'accessing' }
Expand Down
21 changes: 3 additions & 18 deletions src/NewTools-SettingsBrowser/StSettingsMainPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ Class {
{ #category : 'accessing' }
StSettingsMainPresenter class >> application [

self haltOnce.
^ StPharoApplication current
propertyAt: #settingsStree put: StSettingsTree new;
"propertyAt: #iconMap put: self iconMap;"
propertyAt: #settingsTree put: StSettingsTree new;
propertyAt: #iconMap put: self iconMap;
styleSheet: self styleSheet;
"iconProvider: self iconProvider;"
iconProvider: StSettingsBrowserIconProvider new;
yourself.

]
Expand All @@ -60,13 +59,6 @@ StSettingsMainPresenter class >> iconMapAt: aString [
ifAbsent: [ #info ]
]

{ #category : 'accessing' }
StSettingsMainPresenter class >> iconProvider [

^ iconProvider
ifNil: [ iconProvider := self newIconProvider ]
]

{ #category : 'accessing' }
StSettingsMainPresenter class >> initializeIconMap [

Expand Down Expand Up @@ -97,13 +89,6 @@ StSettingsMainPresenter class >> menuSettingsBrowserCommandOn: aBuilder [
order: 3
]

{ #category : 'world menu' }
StSettingsMainPresenter class >> newApplication: anApplication [

self haltOnce.
super newApplication: anApplication
]

{ #category : 'accessing - icons' }
StSettingsMainPresenter class >> newIconProvider [

Expand Down

0 comments on commit f0536fa

Please sign in to comment.