Skip to content

Commit

Permalink
move the factory method
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Dec 18, 2023
1 parent 8442560 commit 1eff529
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/Spec2-Core/SpTPresenterBuilder.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ SpTPresenterBuilder >> newLabel [
^ self instantiate: SpLabelPresenter
]

{ #category : 'scripting - widgets' }
SpTPresenterBuilder >> newLink [
^ self instantiate: SpLinkPresenter
]

{ #category : 'scripting - widgets' }
SpTPresenterBuilder >> newList [
^ self instantiate: SpListPresenter
Expand Down
5 changes: 0 additions & 5 deletions src/Spec2-Morphic/SpTPresenterBuilder.extension.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
Extension { #name : 'SpTPresenterBuilder' }

{ #category : '*Spec2-Morphic' }
SpTPresenterBuilder >> newLink [
^ self instantiate: SpLinkPresenter
]

{ #category : '*Spec2-Morphic' }
SpTPresenterBuilder >> newMorph [

Expand Down

0 comments on commit 1eff529

Please sign in to comment.