Skip to content

Commit c227ffc

Browse files
committed
define GtPhlowToolCommonViewModel [feenkcom/gtoolkit#3422]
1 parent 7ca6ebc commit c227ffc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/GToolkit-Inspector/GtInspector.class.st

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ GtInspector >> initialize [
162162
self initializeListeners.
163163
self matchParent.
164164
self playgroundElement collapse.
165+
self phlow
166+
accessTool: (GtPhlowToolClassType forClass: self class)
167+
viewModel: #objectHolder
168+
object: #object.
165169
]
166170

167171
{ #category : #initialization }

src/GToolkit-Inspector/GtInspectorTool.class.st

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ GtInspectorTool >> context: aPhlowContext [
7575
self objectHolder context: aPhlowContext
7676
]
7777

78+
{ #category : #accessing }
79+
GtInspectorTool >> contextWithNavigationContext: aNavigationContext [
80+
"Tools may use phlow context with the given navigation context"
81+
82+
self context: (GtPhlowContext new navigationContext: aNavigationContext)
83+
]
84+
7885
{ #category : #'api - accessing' }
7986
GtInspectorTool >> databasesRegistry: aDatabasesRegistry [
8087
databasesRegistry := aDatabasesRegistry

0 commit comments

Comments
 (0)