Skip to content

Commit

Permalink
Merge pull request #1772 from tesonep/adding-application-in-model
Browse files Browse the repository at this point in the history
Adding application in model temporarly
  • Loading branch information
tesonep authored Nov 29, 2023
2 parents a557cbf + 0c4d94a commit 2cff2ec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
13 changes: 6 additions & 7 deletions Iceberg-TipUI/IceTipDiffPreviewModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ IceTipDiffPreviewModel >> commitish: aCommitish [
{ #category : 'accessing' }
IceTipDiffPreviewModel >> diff [

^ diffModel ifNil: [ | diff |
self application
informUser: 'Calculating diff'
during: [ diff := self calculateDiff ].
diffModel := IceTipCommitDiffModel
repositoryModel: self repositoryModel
on: diff ]
^ diffModel ifNil: [
| diff |
diff := self calculateDiff.
diffModel := IceTipCommitDiffModel
repositoryModel: self repositoryModel
on: diff ]
]

{ #category : 'accessing' }
Expand Down
6 changes: 6 additions & 0 deletions Iceberg-TipUI/IceTipModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Class {
#tag : 'Model'
}

{ #category : 'accessing' }
IceTipModel >> application [

^ StPharoApplication current
]

{ #category : 'converting' }
IceTipModel >> beCached [
^ IceTipCachedModel for: self
Expand Down
4 changes: 3 additions & 1 deletion Iceberg-TipUI/IceTipPreviewBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ IceTipPreviewBrowser >> initialExtentForWindow [
{ #category : 'initialization' }
IceTipPreviewBrowser >> initializePresenters [

diffPanel := self instantiate: IceTipDiffPanel on: self model diff.
self application
informUser: 'Calculating diff'
during: [ diffPanel := self instantiate: IceTipDiffPanel on: self model diff].
actionPanel := self newButtonBar.
actionPanel add: (button := self newActionButton)
]
Expand Down

0 comments on commit 2cff2ec

Please sign in to comment.