VDBThreadPresenter.st
changeset 31 00f6de198c7f
parent 24 c33a063cb363
child 38 9b861cb882c8
equal deleted inserted replaced
30:1851cfc16f27 31:00f6de198c7f
    44      Be aware, that the somewhat stupid 'optimization' of how the model is fetched may lead to
    44      Be aware, that the somewhat stupid 'optimization' of how the model is fetched may lead to
    45      a O(n*log n) or even O(n^2) behavior here.
    45      a O(n*log n) or even O(n^2) behavior here.
    46      *** to optimize: redefine by subClass"
    46      *** to optimize: redefine by subClass"
    47 
    47 
    48      thread isDead ifTrue:[ ^ #() ].
    48      thread isDead ifTrue:[ ^ #() ].
       
    49      thread isRunning ifTrue:[ ^ #() ].
    49      ^ thread stack collect:[ :f | VDBFramePresenter new setFrame: f; parent: self ]
    50      ^ thread stack collect:[ :f | VDBFramePresenter new setFrame: f; parent: self ]
    50 
    51 
    51     "Created: / 21-09-2014 / 23:42:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    52     "Created: / 21-09-2014 / 23:42:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    52     "Modified: / 22-09-2014 / 00:54:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    53     "Modified: / 30-09-2014 / 00:04:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    53 ! !
    54 ! !
    54 
    55 
    55 !VDBThreadPresenter methodsFor:'testing'!
    56 !VDBThreadPresenter methodsFor:'testing'!
    56 
    57 
    57 isThreadPresenter
    58 isThreadPresenter