From 200f42db256b06306476efb5da719580d845821c Mon Sep 17 00:00:00 2001 From: Sven Van Caekenberghe Date: Fri, 22 Sep 2023 11:06:02 +0200 Subject: [PATCH] Add inspector details view for ZTimestampFormat --- .../ZTimestamp-GT/ZTimestampFormat.extension.st | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 repository/ZTimestamp-GT/ZTimestampFormat.extension.st diff --git a/repository/ZTimestamp-GT/ZTimestampFormat.extension.st b/repository/ZTimestamp-GT/ZTimestampFormat.extension.st new file mode 100644 index 0000000..a94a03e --- /dev/null +++ b/repository/ZTimestamp-GT/ZTimestampFormat.extension.st @@ -0,0 +1,15 @@ +Extension { #name : #ZTimestampFormat } + +{ #category : #'*ZTimestamp-GT' } +ZTimestampFormat >> gtViewDetailsIn: composite [ + + ^ composite columnedList + title: 'Details'; + items: [ {('specification by example' -> self specification). + ('now' -> (self format: ZTimestamp now)). + ('elements' -> (self specificationElements)). + ('timezone' -> (self timezone ifNil: [ #UTC ])) } ]; + column: 'Key' text: #key; + column: 'Value' text: #value; + send: #value +]