Closed Ducasse closed 4 days ago
Why putting the model in the currentApplication property. We could just put the presenter and the presenter should know its model.
We should clarified this architecture.
settingsTree
"Answer the receiver's <StSettingsTree>, the settings model"
^ self currentApplication propertyAt: #settingsTree.
@estebanlm @tesonep what is the vision for the way application manages their tools?
The SettingsMainPresenter should then register itself or its model to the current application. I could not find where it is doing this.
because then application will start to have too many concerns and it will start being itself a mud ball...
instead, StPharoApplication
have now a method:
tools
^ Smalltalk tools
for now it just answers Smalltalk tools
, but there is no reason why it cannot get it from a property (or an instance variable) in the future (which is the intended usage, in fact... just transitions take time).
No complains if we do that (the registry in a separated instance), and then we add convenience methods to access the tools (methods that delegate to the registry).
Hernan fix it and I proposed a registration in StPharoApplication and I will migrate to it.