Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Iceberg repositories #2540

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions src/BaselineOfMoose/BaselineOfMoose.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ BaselineOfMoose >> baseline: spec [
mooseIDE: spec.

spec
package: 'Moose-Configuration' with: [ spec requires: #( 'Famix' 'FamixTagging' 'FamixReplication' 'MooseIDE' ) ];
package: 'Moose-WelcomeBrowser' with: [ spec requires: #( 'Moose-Configuration' ) ].
package: 'Moose-Configuration' with: [
spec requires:
#( 'Famix' 'FamixTagging' 'FamixReplication' 'MooseIDE' ) ];
package: 'Moose-WelcomeBrowser'
with: [ spec requires: #( 'Moose-Configuration' ) ].

self groups: spec.
spec postLoadDoIt: #registerMooseWelcomeBrowser ]
spec postLoadDoIt: #installMooseConfigurations ]
]

{ #category : #dependencies }
Expand Down Expand Up @@ -59,6 +62,13 @@ BaselineOfMoose >> groups: spec [
spec group: 'Metamodel' with: #( 'Famix' )
]

{ #category : #actions }
BaselineOfMoose >> installMooseConfigurations [

self registerMooseWelcomeBrowser.
self registerToIceberg
]

{ #category : #dependencies }
BaselineOfMoose >> mooseIDE: spec [

Expand All @@ -75,9 +85,17 @@ BaselineOfMoose >> projectClass [

{ #category : #actions }
BaselineOfMoose >> registerMooseWelcomeBrowser [
"For Pharo 11 and after"

Smalltalk
at: #MooseWelcomeBrowser
ifPresent: [ :mooseWelcome | mooseWelcome register ]
]

{ #category : #actions }
BaselineOfMoose >> registerToIceberg [

Smalltalk
at: #MooseConfiguration
ifPresent: [ :mooseConfiguration |
mooseConfiguration registerToIceberg ]
]
20 changes: 20 additions & 0 deletions src/Moose-Configuration/MooseConfiguration.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,23 @@ MooseConfiguration class >> mooseSettingsOn: aBuilder [
label: 'Moose';
description: 'Moose settings'
]

{ #category : #iceberg }
MooseConfiguration class >> registerToIceberg [

Iceberg announcer
when: IceRepositoryCreated
send: #sortIcebergRepositories
to: self.

Iceberg announcer
when: IceRepositoryModified
send: #sortIcebergRepositories
to: self
]

{ #category : #iceberg }
MooseConfiguration class >> sortIcebergRepositories [

IceRepository registry sort: #isMissing ascending , #name ascending
]
Loading