--- a/InspectorView.st Wed Aug 21 15:25:28 2019 +0200
+++ b/InspectorView.st Wed Aug 21 16:56:21 2019 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
"
COPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
@@ -3212,7 +3210,7 @@
"/ this is returned by collection-inspectors,
"/ when a field-index for a no-longer-present-index is selected
"/ (eg. if an OrderedCollection growed to a smaller size in the meantime)
- ^ '«element no longer present»' withColor:Color grey.
+ ^ '«element no longer present»' withColor:Color grey.
].
idx := self theSingleSelectionIndex.
@@ -3223,7 +3221,11 @@
extraAttributes := self myObjectsInspectorExtraAttributes.
extraAttributes at:sel ifPresent:[:extraAttributeBlock|
"evaluate the extraAttributeBlock"
- ^ extraAttributeBlock value displayString
+ Error handle:[:ex |
+ ^ '<< error in displayString: %1 >>' bindWith:ex description.
+ ] do:[
+ ^ extraAttributeBlock value displayString
+ ].
].
(sel startsWith:$-) ifTrue:[
@@ -3290,15 +3292,15 @@
"/ UserPreferences current showTypeIndicatorInInspector ifFalse:[^ nil].
value isBridgeProxy ifTrue:[
"avoid sending out messages"
- ^ '» Bridge Proxy «'
+ ^ '» Bridge Proxy «'
].
value isProxy ifTrue:[
"avoid sending out messages"
- ^ '» Proxy «'
+ ^ '» Proxy «'
].
value isLazyValue ifTrue:[
"do not block on not yet finished Futures et al"
- ^ '» Lazy value «'
+ ^ '» Lazy value «'
].
value class == ValueHolder ifTrue:[
"/ just in case...
@@ -3306,7 +3308,7 @@
s := self plainValueStringInListEntryForValue:value value.
s notNil ifTrue:[
- ^ '« ' , s , ' »'
+ ^ '« ' , s , ' »'
].
^ nil
].
@@ -3524,8 +3526,8 @@
d := self derivedFields.
(d isDictionary) ifTrue:[
actionItems := d keys select:[:k | k first == $!!] as:OrderedCollection .
- valueItems := d keys select:[:k | '-¤' includes:k first] as:OrderedCollection.
- otherItems := d keys select:[:k | ('!!-¤' includes: k first) not] as:OrderedCollection.
+ valueItems := d keys select:[:k | '-¤' includes:k first] as:OrderedCollection.
+ otherItems := d keys select:[:k | ('!!-¤' includes: k first) not] as:OrderedCollection.
^ ((actionItems sort , valueItems "sort") collect:[:k | (k copyTo:1),(k copyFrom:2) allItalic])
,
otherItems sort
@@ -4187,7 +4189,7 @@
].
"/ another special (pseudo) entries?
- (lineEntry startsWith:$¤) ifTrue:[
+ (lineEntry startsWith:$¤) ifTrue:[
^ self valueForSpecialLine:lineEntry
].
@@ -4615,7 +4617,7 @@
!
tryToSelectKeyNamed:aString
- "called from the debugger to try to select the previousöy selected
+ "called from the debugger to try to select the previousöy selected
field (by name)"
|list idx aStringWithSpace|