Skip to content

Commit

Permalink
Merge pull request #721 from tesonep/fixing-method-versions-window
Browse files Browse the repository at this point in the history
Fixing Version Browser Presenter
  • Loading branch information
tesonep authored Mar 18, 2024
2 parents 9571836 + 45272a5 commit 2e4b194
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Class {
#tag : 'Commands'
}

{ #category : 'default' }
StMessageImplementorsCommand class >> defaultDescription [

^ 'Browse all methods implementing the selector of the current method'
]

{ #category : 'accessing' }
StMessageImplementorsCommand class >> defaultName [

Expand Down
6 changes: 6 additions & 0 deletions src/NewTools-MethodBrowsers/StMessageSendersCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Class {
#tag : 'Commands'
}

{ #category : 'default' }
StMessageSendersCommand class >> defaultDescription [

^ 'Browse all methods sending messages with the selector of the current method'
]

{ #category : 'accessing' }
StMessageSendersCommand class >> defaultName [

Expand Down
6 changes: 6 additions & 0 deletions src/NewTools-MethodBrowsers/StMessageUsersCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Class {
#tag : 'Commands'
}

{ #category : 'default' }
StMessageUsersCommand class >> defaultDescription [

^ 'Browse all methods using the selector of the current method'
]

{ #category : 'accessing' }
StMessageUsersCommand class >> defaultName [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ StVersionBrowserPresenter >> doRevert [
StVersionBrowserPresenter >> initializePresenters [

messageList := self newMessageList.
toolbarPresenter := self newMessageToolbar.

toolbarPresenter := self newMessageToolbar
messageList: messageList;
yourself.

messageList
topologicSort: false;
sortingBlock: [ :a | a annotationNamed: #versionIndex ifAbsent: [ 0 ] ] ascending.
Expand Down
4 changes: 2 additions & 2 deletions src/NewTools-MethodBrowsers/StVersionRevertCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Class {
#tag : 'Commands'
}

{ #category : 'accessing' }
{ #category : 'default' }
StVersionRevertCommand class >> defaultDescription [

^ 'Compare selected version to the current version'
^ 'Revert the current method to the selected version'
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 2e4b194

Please sign in to comment.