Skip to content

Commit 947bef6

Browse files
authored
Merge pull request #47 from ba-st/45-Add-custom-visualisation-of-CompositeSystems-subsystems
Add inspector tab for CompositeSystem
2 parents f0ab0d6 + 76d4664 commit 947bef6

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

source/BaselineOfKepler/BaselineOfKepler.class.st

+10-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ BaselineOfKepler >> baseline: spec [
1818
group: 'CI' with: 'Tests';
1919
group: 'Tools' with: 'Buoy-Tools';
2020
group: 'Development' with: #('Tests' 'Tools')
21-
]
21+
].
22+
spec for: #'pharo10.x' do: [ self setUpPharo10Packages: spec ]
2223
]
2324

2425
{ #category : #accessing }
@@ -63,3 +64,11 @@ BaselineOfKepler >> setUpPackages: spec [
6364
with: [ spec requires: #('Kepler-Notifications' 'Kepler-SUnit-Model') ];
6465
group: 'Tests' with: 'Kepler-Notifications-Tests'
6566
]
67+
68+
{ #category : #initialization }
69+
BaselineOfKepler >> setUpPharo10Packages: spec [
70+
71+
spec
72+
package: 'Kepler-Development-Tools' with: [ spec requires: 'Kepler-System' ];
73+
group: 'Tools' with: 'Kepler-Development-Tools'
74+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Extension { #name : #CompositeSystem }
2+
3+
{ #category : #'*Kepler-Development-Tools' }
4+
CompositeSystem >> subsystemsInspectorTab [
5+
6+
<inspectorPresentationOrder: 0 title: 'Subsystems'>
7+
^ SpTablePresenter new
8+
items: subsystems;
9+
addColumn: ( SpStringTableColumn title: 'Name' evaluated: [ :subsystem | subsystem name ] );
10+
addColumn: ( SpStringTableColumn
11+
title: 'Implemented interfaces'
12+
evaluated: [ :subsystem | subsystem implementedInterfaces ] );
13+
addColumn:
14+
( SpStringTableColumn title: 'Dependencies' evaluated: [ :subsystem | subsystem dependencies ] );
15+
addColumn: ( ( SpStringTableColumn
16+
title: 'Status'
17+
evaluated: [ :subsystem | subsystem isStarted then: [ 'Started' ] otherwise: 'Stopped' ] )
18+
width: 80;
19+
yourself );
20+
yourself
21+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Package { #name : #'Kepler-Development-Tools' }

0 commit comments

Comments
 (0)