Skip to content

Commit

Permalink
Merge pull request #754 from jecisc/packageOrganizer
Browse files Browse the repository at this point in the history
Remove deprecated way to access the global package organizer
  • Loading branch information
MarcusDenker authored May 16, 2024
2 parents 4abf002 + 075dad1 commit f805807
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ StCritiqueRuleSelectorPresenter class >> open [

<example>
| packages env |
packages := RPackageOrganizer default packages.
packages := self packageOrganizer packages.
env := RBPackageEnvironment new packages: packages.
^ (self openWithEnvironment: env removeTestCase: false)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Class {
{ #category : 'api' }
StRewriterEnvironmentCreator class >> scopeEnvironmentForAllPackages [

^ RBPackageEnvironment packages: RPackageOrganizer default packages
^ RBPackageEnvironment packages: self packageOrganizer packages
]

{ #category : 'api' }
Expand Down
3 changes: 2 additions & 1 deletion src/NewTools-Spotter-Processors/StPackageIterator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Class {

{ #category : 'enumerating' }
StPackageIterator >> elementsDo: aValuable [
"Maybe we should check other environments than the global one?"

RPackageOrganizer default packagesDo: aValuable
self class packageOrganizer packagesDo: aValuable
]

0 comments on commit f805807

Please sign in to comment.