From 293d6dbf73cfa6cdd1dcb913399037ccff47eae3 Mon Sep 17 00:00:00 2001 From: StevenCostiou Date: Mon, 7 Mar 2022 14:14:15 +0100 Subject: [PATCH] Removing and adapting old code after introduction of a debugger inst var into the debugger extension trait --- src/NewTools-Debugger/TStDebuggerExtension.trait.st | 5 +++++ .../StSindarinBytecodeDebuggerPresenter.class.st | 8 +------- .../StSindarinDebuggerScriptingPresenter.class.st | 10 ++-------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/NewTools-Debugger/TStDebuggerExtension.trait.st b/src/NewTools-Debugger/TStDebuggerExtension.trait.st index 92da917d9..021c310f6 100644 --- a/src/NewTools-Debugger/TStDebuggerExtension.trait.st +++ b/src/NewTools-Debugger/TStDebuggerExtension.trait.st @@ -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] diff --git a/src/NewTools-Sindarin-Tools/StSindarinBytecodeDebuggerPresenter.class.st b/src/NewTools-Sindarin-Tools/StSindarinBytecodeDebuggerPresenter.class.st index 3f6714513..8eaf0ccba 100644 --- a/src/NewTools-Sindarin-Tools/StSindarinBytecodeDebuggerPresenter.class.st +++ b/src/NewTools-Sindarin-Tools/StSindarinBytecodeDebuggerPresenter.class.st @@ -8,7 +8,6 @@ Class { 'bcContextInspection', 'toolbar', 'sindarinDebugger', - 'stDebugger', 'bytecodeList', 'currentPC' ], @@ -30,11 +29,6 @@ StSindarinBytecodeDebuggerPresenter class >> defaultLayout [ yourself ] -{ #category : #accessing } -StSindarinBytecodeDebuggerPresenter >> debugger [ - ^stDebugger -] - { #category : #'debugger extension' } StSindarinBytecodeDebuggerPresenter >> debuggerExtensionToolName [ ^ 'Bytecode' @@ -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 ] diff --git a/src/NewTools-Sindarin-Tools/StSindarinDebuggerScriptingPresenter.class.st b/src/NewTools-Sindarin-Tools/StSindarinDebuggerScriptingPresenter.class.st index 6de48c921..8b1abece6 100644 --- a/src/NewTools-Sindarin-Tools/StSindarinDebuggerScriptingPresenter.class.st +++ b/src/NewTools-Sindarin-Tools/StSindarinDebuggerScriptingPresenter.class.st @@ -16,8 +16,7 @@ Class { 'code', 'resultInspection', 'toolbar', - 'sindarinDebugger', - 'stDebugger' + 'sindarinDebugger' ], #category : #'NewTools-Sindarin-Tools' } @@ -40,11 +39,6 @@ StSindarinDebuggerScriptingPresenter >> createCommandFromScript [ self flag: 'todo' ] -{ #category : #accessing } -StSindarinDebuggerScriptingPresenter >> debugger [ - ^stDebugger -] - { #category : #'debugger extension' } StSindarinDebuggerScriptingPresenter >> debuggerExtensionToolName [ @@ -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 ]