Skip to content

Commit a60b84f

Browse files
committed
add missing methods from GT package
1 parent 0916410 commit a60b84f

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

ObjectStatistics-NewTools/ObjectStatDimension.extension.st

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Extension { #name : #ObjectStatDimension }
22

3+
{ #category : #'*ObjectStatistics-NewTools' }
4+
ObjectStatDimension >> inspectionTreeItems [
5+
^self sortedSlices
6+
]
7+
38
{ #category : #'*ObjectStatistics-NewTools' }
49
ObjectStatDimension >> itemsTreeInspectionIn: aBuilder [
510
<inspectorPresentationOrder: 30 title: 'Metrics'>

ObjectStatistics-NewTools/ObjectStatSlice.extension.st

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Extension { #name : #ObjectStatSlice }
22

3+
{ #category : #'*ObjectStatistics-NewTools' }
4+
ObjectStatSlice >> inspectionTreeItems [
5+
^statistics inspectionTreeItems
6+
]
7+
38
{ #category : #'*ObjectStatistics-NewTools' }
49
ObjectStatSlice >> itemsTreeInspectionIn: aBuilder [
510
<inspectorPresentationOrder: 30 title: 'Metrics'>

ObjectStatistics-NewTools/ObjectStatistics.extension.st

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ ObjectStatistics class >> buildInspectionMetricsTreeFor: anObject in: aBuilder [
55

66
^aBuilder newTree
77
roots: { anObject };
8-
children: [ :receiver | receiver inspectorTreeItems];
8+
children: [ :receiver | receiver inspectionTreeItems ];
99
expandAll;
1010
yourself
1111
]
1212

13+
{ #category : #'*ObjectStatistics-NewTools' }
14+
ObjectStatistics >> inspectionTreeItems [
15+
dimensions size = 1 ifTrue: [ ^dimensions first inspectionTreeItems ].
16+
17+
^dimensions reject: #isEmpty
18+
]
19+
1320
{ #category : #'*ObjectStatistics-NewTools' }
1421
ObjectStatistics >> itemsTreeInspectionIn: aBuilder [
1522
<inspectorPresentationOrder: 30 title: 'Metrics'>

0 commit comments

Comments
 (0)