Skip to content

Commit

Permalink
Add missing #isClassResult method.
Browse files Browse the repository at this point in the history
Add key bindings to result tree.
  • Loading branch information
Hernán Morales Durand committed Feb 12, 2024
1 parent 41f0bf9 commit 4798675
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/NewTools-Finder/StFinderClassResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ StFinderClassResult >> hasSelectorParent [
^ self parent isNotNil and: [ self parent isSelectorResult ]
]

{ #category : 'testing' }
StFinderClassResult >> isClassResult [

^ true
]

{ #category : 'action' }
StFinderClassResult >> referencesAction [

Expand Down
4 changes: 3 additions & 1 deletion src/NewTools-Finder/StFinderPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ StFinderPresenter >> initializeResultTree [
beMultipleSelection;
display: [ :result | result displayString ];
displayIcon: [ :result | result displayIcon ];
bindKeyCombination: $b meta toAction: [ self resultTree selectedItem browseAction ];
bindKeyCombination: $r meta toAction: [ self resultTree selectedItem referencesAction ];
contextMenu: [ (self rootCommandsGroup / 'StFinderSelContextualMenu') beRoot asMenuPresenter ].
]

Expand Down Expand Up @@ -547,7 +549,7 @@ StFinderPresenter >> updateResultsWith: results time: time [
roots: results;
children: [ :result | result children ].
self updateResultsBehavior.
resultStatusBar pushMessage: (self updateStatusBarTextFrom: results time: time)
resultStatusBar pushMessage: (self updateStatusBarTextFrom: results time: time).
]

{ #category : 'updating - widgets' }
Expand Down
3 changes: 1 addition & 2 deletions src/NewTools-Finder/StMethodFinderSend.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ StMethodFinderSend >> evaluateWithTimeOut: anInteger [

runner := TKTLocalProcessTaskRunner new.
runner
schedule: [
result := [ self evaluate ] onErrorDo: [ : e | self handleError: e ] ] asTask
schedule: [ result := [ self evaluate ] onErrorDo: [ : e | self handleError: e ] ] asTask
timeout: anInteger milliSeconds.
^ result

Expand Down

0 comments on commit 4798675

Please sign in to comment.