From 311e99c749f59eb586d3502d765ec4c792963a56 Mon Sep 17 00:00:00 2001 From: Tudor Girba Date: Tue, 20 Aug 2024 23:50:21 +0200 Subject: [PATCH 1/2] add the file system tool to the default tool for a directory --- .../AbstractFileReference.extension.st | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/GToolkit-Inspector/AbstractFileReference.extension.st b/src/GToolkit-Inspector/AbstractFileReference.extension.st index 34f7aca3..269e2a74 100644 --- a/src/GToolkit-Inspector/AbstractFileReference.extension.st +++ b/src/GToolkit-Inspector/AbstractFileReference.extension.st @@ -89,6 +89,15 @@ AbstractFileReference >> gtContentsFor: aView [ stencil: [ self gtEditorView ] ] +{ #category : #'*GToolkit-Inspector' } +AbstractFileReference >> gtDefaultInspectorTool [ + ^ (self exists and: [ self isDirectory ]) + ifTrue: [ GtPhlowCompositeTool new + addTool: super gtDefaultInspectorTool; + addTool: (GtFileBrowserFolderTool forFolder: self) ] + ifFalse: [ super gtDefaultInspectorTool ] +] + { #category : #'*GToolkit-Inspector' } AbstractFileReference >> gtDetails [ | details | From 024ee43648b666be268b0c866d5cf2b87581aa1e Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Wed, 21 Aug 2024 13:25:00 +0200 Subject: [PATCH 2/2] Add API for removing playground from inspector --- src/GToolkit-Inspector/GtInspector.class.st | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GToolkit-Inspector/GtInspector.class.st b/src/GToolkit-Inspector/GtInspector.class.st index 456027de..353809a3 100644 --- a/src/GToolkit-Inspector/GtInspector.class.st +++ b/src/GToolkit-Inspector/GtInspector.class.st @@ -226,6 +226,11 @@ GtInspector >> playgroundPageStrategy: aPlaygroundPageStrategy [ self updatePlaygroundPageStrategy. ] +{ #category : #'as yet unclassified' } +GtInspector >> removePlayground [ + self removeChild: self playgroundElement +] + { #category : #selection } GtInspector >> selectTabWithIdentifier: aTabIdentifier [ aTabIdentifier applySelectionTo: self