Skip to content

Commit

Permalink
Removing and adapting old code after introduction of a debugger inst …
Browse files Browse the repository at this point in the history
…var into the debugger extension trait
  • Loading branch information
StevenCostiou committed Mar 7, 2022
1 parent 755692e commit 293d6db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
5 changes: 5 additions & 0 deletions src/NewTools-Debugger/TStDebuggerExtension.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ TStDebuggerExtension classSide >> displayOrder: anInteger [
debuggerExtensionDisplayOrder := anInteger
]

{ #category : #'as yet unclassified' }
TStDebuggerExtension classSide >> showInContext: aContext [
^true
]

{ #category : #'debugger extension' }
TStDebuggerExtension classSide >> showInDebugger [
^showDebuggerExtension ifNil: [showDebuggerExtension := false]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Class {
'bcContextInspection',
'toolbar',
'sindarinDebugger',
'stDebugger',
'bytecodeList',
'currentPC'
],
Expand All @@ -30,11 +29,6 @@ StSindarinBytecodeDebuggerPresenter class >> defaultLayout [
yourself
]

{ #category : #accessing }
StSindarinBytecodeDebuggerPresenter >> debugger [
^stDebugger
]

{ #category : #'debugger extension' }
StSindarinBytecodeDebuggerPresenter >> debuggerExtensionToolName [
^ 'Bytecode'
Expand All @@ -61,7 +55,7 @@ StSindarinBytecodeDebuggerPresenter >> initializeToolbar [
{ #category : #accessing }
StSindarinBytecodeDebuggerPresenter >> setModelBeforeInitialization: aStDebugger [
"My original model is the debugger presenter that I extend"
stDebugger := aStDebugger.
debugger := aStDebugger.
sindarinDebugger := aStDebugger sindarinDebugger
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Class {
'code',
'resultInspection',
'toolbar',
'sindarinDebugger',
'stDebugger'
'sindarinDebugger'
],
#category : #'NewTools-Sindarin-Tools'
}
Expand All @@ -40,11 +39,6 @@ StSindarinDebuggerScriptingPresenter >> createCommandFromScript [
self flag: 'todo'
]

{ #category : #accessing }
StSindarinDebuggerScriptingPresenter >> debugger [
^stDebugger
]

{ #category : #'debugger extension' }
StSindarinDebuggerScriptingPresenter >> debuggerExtensionToolName [

Expand Down Expand Up @@ -115,7 +109,7 @@ StSindarinDebuggerScriptingPresenter >> saveScript [
{ #category : #accessing }
StSindarinDebuggerScriptingPresenter >> setModelBeforeInitialization: aStDebugger [
"My original model is the debugger presenter that I extend"
stDebugger := aStDebugger.
debugger := aStDebugger.
sindarinDebugger := aStDebugger sindarinDebugger
]

Expand Down

0 comments on commit 293d6db

Please sign in to comment.