Skip to content

Commit

Permalink
iconProvider was pushed to SpApplication
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
estebanlm committed Feb 10, 2021
1 parent d5c1668 commit c045208
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
33 changes: 12 additions & 21 deletions src/NewTools-Core/StPharoApplication.class.st
Expand Up @@ -4,9 +4,6 @@ The application for the Pharo IDE.
Class {
#name : #StPharoApplication,
#superclass : #SpApplication,
#instVars : [
'iconProvider'
],
#classVars : [
'Current'
],
Expand Down Expand Up @@ -39,31 +36,19 @@ StPharoApplication class >> startUp: resuming [
Current startUp: resuming
]

{ #category : #'accessing resources' }
StPharoApplication >> iconNamed: aSymbol [

^ self iconProvider iconNamed: aSymbol
]

{ #category : #'accessing resources' }
StPharoApplication >> iconProvider [

^ iconProvider ifNil: [ iconProvider := StPharoDefaultIconProvider new ]
]

{ #category : #'accessing resources' }
StPharoApplication >> iconProvider: anIconProvider [

iconProvider := anIconProvider
]

{ #category : #initialization }
StPharoApplication >> initialize [

super initialize.
self resetConfiguration
]

{ #category : #'private factory' }
StPharoApplication >> newIconProvider [

^ StPharoDefaultIconProvider new
]

{ #category : #initialization }
StPharoApplication >> resetConfiguration [

Expand Down Expand Up @@ -101,3 +86,9 @@ StPharoApplication >> toolbarDisplayMode [

^ StPharoSettings toolbarDisplayMode
]

{ #category : #'accessing resources' }
StPharoApplication >> tools [

^ Smalltalk os tools
]
4 changes: 2 additions & 2 deletions src/NewTools-Core/StPharoDefaultIconProvider.class.st
@@ -1,6 +1,6 @@
Class {
#name : #StPharoDefaultIconProvider,
#superclass : #Object,
#superclass : #SpPharoThemeIconProvider,
#instVars : [
'synonyms'
],
Expand All @@ -20,7 +20,7 @@ StPharoDefaultIconProvider >> initialize [

super initialize.
synonyms := Dictionary new.
self initializeSynonyms.
self initializeSynonyms
]

{ #category : #'class initialization' }
Expand Down
2 changes: 1 addition & 1 deletion src/Spec2-Core/SpCompositeIconProvider.class.st
@@ -1,7 +1,7 @@
"
A composite icon provider.
Users can compose icon providers to define different ways to find icons.
A tipical usage would be:
A typical usage would be:
```
(SpLocationIconProvider newLocation: './icons' asFileReference), SpPharoThemeIconProvider new
Expand Down

0 comments on commit c045208

Please sign in to comment.