Skip to content
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
3 changes: 2 additions & 1 deletion src/NewTools-Debugger/StDebugger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ StDebugger >> buildToolbarMenus: menuBar withCommandsGroups: advancedCommandGrou
name: cmd name;
icon: (self iconNamed: cmd iconName);
description: cmd description;
action: [ cmd execute ] ] ].
action: [ cmd execute ];
enabled: cmd canBeExecuted ] ].

menuBar addGroup: [ :group |
group addItem: [ :item |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ SindarinJumpToCaretCommand class >> defaultName [
{ #category : 'execution' }
SindarinJumpToCaretCommand >> execute [

| targetNode |
self flag:
'Context should actually be a debugger or a sindarin debugger'.
self flag: 'Suspicious call to internal debugger UI state'.
targetNode := self context sindarinDebugger bestNodeFor:
self context code selectionInterval.
self context sindarinDebugger moveToNode: targetNode.
self context forceSessionUpdate.
self context sindarinDebugger moveToNode:
self context sindarinTargetNode.
self context forceSessionUpdate
]
10 changes: 3 additions & 7 deletions src/NewTools-Sindarin-Commands/SindarinSkipUpToCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ SindarinSkipUpToCommand class >> defaultName [

{ #category : 'hooks' }
SindarinSkipUpToCommand >> execute [
| targetNode |

self flag: 'Context should actually be a debugger or a sindarin debugger'.
self flag: 'Suspicious call to internal debugger UI state'.
targetNode := self context sindarinDebugger
bestNodeFor: self context code selectionInterval.
self context sindarinDebugger skipUpToNode: targetNode.

self context sindarinDebugger skipUpToNode:
self context sindarinTargetNode.
self context forceSessionUpdate
]
6 changes: 6 additions & 0 deletions src/NewTools-Sindarin-Tools/StDebugger.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ Extension { #name : 'StDebugger' }
StDebugger >> sindarinDebugger [
^ SindarinDebugger attachTo: self session
]

{ #category : '*NewTools-Sindarin-Tools' }
StDebugger >> sindarinTargetNode [

^ self sindarinDebugger targetNodeFor: self code selectionInterval
]
Loading