Skip to content

Commit

Permalink
Add GtRemotePhlowViewedObject>>#getViewsDeclarationsWithPhlowDataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Jun 24, 2024
1 parent 7ac7781 commit 07c3106
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ GtPhlowTextualViewSpecification >> initializeFromInspector: anInspector [
self dataTransport = self class dataIncluded ifTrue: [ ^ self ].

phlowDataSource ifNil: [
self phlowDataSource: (anInspector getDeclarativeViewFor: self methodSelector) ]
self phlowDataSource: (anInspector
getDeclarativeViewFor: self methodSelector) ]
]

{ #category : #'api - accessing' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ GtRemotePhlowViewedObject >> getViewsDeclarations [
yourself
]

{ #category : #'api - accessing' }
GtRemotePhlowViewedObject >> getViewsDeclarationsWithPhlowDataSource [
| viewDeclarations |
viewDeclarations := (self declarativeViewsBySelector
collect: [ :aDeclarativeView |
(self getViewDeclarationForView: aDeclarativeView)
ifNotNil: [ :aDictionary |
aDictionary
at: 'phlowDataSource' put: aDeclarativeView;
yourself ] ]).
^ Dictionary new
at: 'views' put: viewDeclarations asArray;
yourself
]

{ #category : #initialization }
GtRemotePhlowViewedObject >> initializeDeclarativeViews [
| phlowViews |
Expand Down

0 comments on commit 07c3106

Please sign in to comment.