Add half of a coder

This commit is contained in:
2022-04-17 20:49:42 +02:00
parent 199758d97d
commit 64a8353006
7 changed files with 343 additions and 6 deletions

View File

@@ -0,0 +1,31 @@
Class {
#name : #CarpStreamingMethodsCoderElement,
#superclass : #BlElement,
#traits : 'TBrLayoutResizable + TGtWithStreamingCodersViewModel',
#classTraits : 'TBrLayoutResizable classTrait + TGtWithStreamingCodersViewModel classTrait',
#instVars : [
'listItemsProvider',
'list'
],
#category : #'Carp-Coder'
}
{ #category : #accessing }
CarpStreamingMethodsCoderElement >> initialize [
super initialize.
self matchParent.
listItemsProvider := BrListStreamItemsProvider new stream: AsyncEmptyStream new.
list := BrSimpleList new
itemType: [ :anItemTypeFactory :anItemObject | anItemObject elementClass ];
itemStencil: [ :anElementClass | anElementClass new id: GtSourceCoderId ];
itemDataBinder: [ :aCoderElement :aCoderViewModel |
BlFrameTelemetry
time: [ 'Set {1} as a view model of {2}' format: { aCoderViewModel class name . aCoderElement class name } ]
during: [ aCoderElement textualCoderViewModel: aCoderViewModel ] ];
itemsProvider: listItemsProvider.
self addChild: list
]