[squeak-dev] In object Explorer, is there a way to copy the text of the expanded tree?

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Sun Feb 6 17:35:26 UTC 2022

Hi Timothy,

there is the option "copy text" in the halo menu of any morph for this:


In my example, this yields:

root a PasteUpMorph(2434915) [world]
bounds 0 at 0 corner: 1920 at 1017
owner nil
submorphs <...>
fullBounds nil
color (Color r: 0.677 g: 0.194 b: 0.194)
extension a MorphExtension (1623744) [<...>]
borderWidth 0
borderColor (Color r: 0.515 g: 0.181 b: 0.263)
presenter an EtoysPresenter (2134088)
model a MorphicModel(2129814)
cursor 1
padding 3
turtleTrailsForm nil
turtlePen nil
lastTurtlePositions nil
isPartsBin nil
indicateCursor nil
wantsMouseOverHalos nil
worldState a WorldState

If you need a better-structured output, you can retrieve the #explorerContents from any object manually. Hope this helps. :-)

Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von gettimothy via Squeak-dev <squeak-dev at lists.squeakfoundation.org>
Gesendet: Samstag, 5. Februar 2022 13:35:04
An: squeak-dev
Betreff: [squeak-dev] In object Explorer, is there a way to copy the text of the expanded tree?

The purpose would be to copy-n-paste it into documentation, but I have not found a way to do it.

 take something like....

(WABuilder on: WAHtmlCanvas)
rootClass: WAHtmlRoot;
documentClass: WAHtmlDocument

Inspect it.
Click the "Explore" button at bottom of inspector.
Expand the tree view a bit.
Copy and paste that tree into a text like this email.

thx in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220206/fee3a94d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 89889 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220206/fee3a94d/attachment-0001.png>

More information about the Squeak-dev mailing list