NewTools
NewTools copied to clipboard
Allow to change the output port for an inspected object
For example when inspecting a dictionary, the old behavior (which I kinda want back) was to inspect the value instead of the selected association. However I didn't find how to do that.
^ aBuilder newTable
addColumn: (SpStringTableColumn
title: 'Key'
evaluated: [ :each | StObjectPrinter asTruncatedTextFrom: each key ])
beSortable;
addColumn: (SpStringTableColumn
title: 'Value'
evaluated: [ :each | StObjectPrinter asTruncatedTextFrom: each value ])
beSortable;
items: self associations;
yourself