From 8cd6ef591b0c0b7a6d97caa1d038c2da2fd3684a Mon Sep 17 00:00:00 2001 From: Christoph Thiede Date: Thu, 21 Nov 2024 04:18:07 +0100 Subject: [PATCH] add printing support for TalkMessagePlaceholder --- .../TalkMessagePlaceholder.class/instance/asStringOrText.st | 5 +++++ .../TalkMessagePlaceholder.class/instance/printOn..st | 5 +++++ .../TalkMessagePlaceholder.class/methodProperties.json | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/asStringOrText.st create mode 100644 packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/printOn..st diff --git a/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/asStringOrText.st b/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/asStringOrText.st new file mode 100644 index 0000000..7cb0eed --- /dev/null +++ b/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/asStringOrText.st @@ -0,0 +1,5 @@ +converting +asStringOrText + + ^ Text streamContents: [:stream | + self printOn: stream] \ No newline at end of file diff --git a/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/printOn..st b/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/printOn..st new file mode 100644 index 0000000..c383683 --- /dev/null +++ b/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/instance/printOn..st @@ -0,0 +1,5 @@ +printing +printOn: aStream + + aStream withAttribute: TextEmphasis italic do: + [aStream nextPutAll: self messageId]. \ No newline at end of file diff --git a/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/methodProperties.json b/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/methodProperties.json index e4b585d..5be0a8e 100644 --- a/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/methodProperties.json +++ b/packages/SqueakInboxTalk.package/TalkMessagePlaceholder.class/methodProperties.json @@ -2,6 +2,7 @@ "class" : { "inbox:messageId:" : "ct 8/16/2023 15:39" }, "instance" : { + "asStringOrText" : "ct 11/21/2024 04:17", "browse" : "ct 8/16/2023 15:27", "dataKey" : "ct 8/16/2023 15:37", "hyperkittyUrl" : "ct 8/16/2023 15:27", @@ -11,4 +12,5 @@ "messageId" : "ct 8/16/2023 14:33", "messageId:" : "ct 8/16/2023 14:33", "openInHyperkitty" : "ct 8/16/2023 15:27", + "printOn:" : "ct 2/9/2024 12:46", "tryToResolve" : "ct 8/26/2023 00:44" } }