Skip to content

Commit

Permalink
define GtPhlowToolCommonViewModel [feenkcom/gtoolkit#3422]
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajKubelka committed Oct 30, 2024
1 parent 7ca6ebc commit c227ffc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GToolkit-Inspector/GtInspector.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ GtInspector >> initialize [
self initializeListeners.
self matchParent.
self playgroundElement collapse.
self phlow
accessTool: (GtPhlowToolClassType forClass: self class)
viewModel: #objectHolder
object: #object.
]

{ #category : #initialization }
Expand Down
7 changes: 7 additions & 0 deletions src/GToolkit-Inspector/GtInspectorTool.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ GtInspectorTool >> context: aPhlowContext [
self objectHolder context: aPhlowContext
]

{ #category : #accessing }
GtInspectorTool >> contextWithNavigationContext: aNavigationContext [
"Tools may use phlow context with the given navigation context"

self context: (GtPhlowContext new navigationContext: aNavigationContext)
]

{ #category : #'api - accessing' }
GtInspectorTool >> databasesRegistry: aDatabasesRegistry [
databasesRegistry := aDatabasesRegistry
Expand Down

0 comments on commit c227ffc

Please sign in to comment.