<div dir="ltr">Hi.  This is what I originally wanted to do (that Christoph for pointing out my mistake).<div><br></div><div>Tests run acceptable afterwards - same failure (timeout for WeakSetInspectorTest>>#testSymbolTableM6812) and error (out of bounds for CompiledCodeInspectorTest>>#testValuePaneModify) in ToolsTests after loading this as there were in a raw fully updated Trunk image.</div><div><br></div><div>-cbc</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 5, 2020 at 5:21 PM <<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Chris Cunningham uploaded a new version of Tools to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Tools-cbc.972.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Tools-cbc.972.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Tools-cbc.972<br>
Author: cbc<br>
Time: 5 June 2020, 5:21:18.741315 pm<br>
UUID: 50b03b92-aa1d-4e4a-91fd-be3648f39855<br>
Ancestors: Tools-mt.970<br>
<br>
Enhance ObjectExlporer>>copyValue to copy a string that would re-constitute the base value using the representation show in the explorer.<br>
An explicit example: If your are exploring the integer 42 and choose the menu item 'copy value' from the menu while hovering over the "binary '0010 1010'" (or "binary '101010"), it will copy the string '2r101010' to the clipboard.<br>
This is extensible to other objects as well, but currently only supports Integer display options.<br>
<br>
=============== Diff against Tools-mt.970 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Integer>>valueStringForDisplayMethod: (in category '*Tools-Explorer') -----<br>
+ valueStringForDisplayMethod: displayMethod<br>
+       displayMethod = 'hexadecimal' ifTrue: [^'16r', (self printStringBase: 16)].<br>
+       displayMethod = 'octal' ifTrue: [^'8r', (self printStringBase: 8)].<br>
+       displayMethod = 'binary' ifTrue: [^'2r', (self printStringBase: 2)].<br>
+       ^self asStringOrText !<br>
<br>
Item was changed:<br>
  ----- Method: ObjectExplorer>>copyValue (in category 'menus - actions') -----<br>
  copyValue<br>
        "Copy a description of the value of the current variable, so the user can paste it into the window below and work with it."<br>
+       | value |<br>
+       value := (self currentParent value respondsTo: #valueStringForDisplayMethod:)<br>
+               ifTrue: [self currentParent value valueStringForDisplayMethod: self currentSelection key]<br>
+               ifFalse: [self currentSelection value].<br>
+       Clipboard clipboardText: value asStringOrText.!<br>
-       <br>
-       Clipboard clipboardText: self currentSelection value asStringOrText.    !<br>
<br>
<br>
</blockquote></div>