Update "selected frame" when frame selection changes.
This makes using a GDB console easier as the commands operate on selected frame.
"{ Package: 'jv:vdb' }"
VDBModelPresenter subclass:#VDBFramePresenter
instanceVariableNames:'frame'
classVariableNames:''
poolDictionaries:''
category:'VDB-Presentation'
!
!VDBFramePresenter methodsFor:'accessing'!
frame
^ frame
!
icon
^ frame thread isRunning
ifTrue:[ VDBIconLibrary frameRunning16x16 ]
ifFalse:[ VDBIconLibrary frameStopped16x16 ]
"Created: / 22-09-2014 / 22:06:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
label
^ frame displayString
"Created: / 22-09-2014 / 00:14:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!VDBFramePresenter methodsFor:'initialization'!
setFrame: aGDBFrame
^ frame := aGDBFrame
"Created: / 21-09-2014 / 23:38:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!VDBFramePresenter methodsFor:'protocol-accessing'!
fetchChildren
"should compute the list of children via the model.
Be aware, that the somewhat stupid 'optimization' of how the model is fetched may lead to
a O(n*log n) or even O(n^2) behavior here.
*** to optimize: redefine by subClass"
^ #()
"Created: / 21-09-2014 / 23:37:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!VDBFramePresenter methodsFor:'testing'!
isFramePresenter
^ true
"Created: / 21-09-2014 / 23:54:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !