Skip to content

Commit

Permalink
Fixing missing defaultLayout
Browse files Browse the repository at this point in the history
title definition
  • Loading branch information
Ducasse committed Jan 28, 2025
1 parent f9cc969 commit 73cf4d6
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ StSingleCritiqueResultListPresenter class >> open [
^ self new open
]

{ #category : 'specs' }
StSingleCritiqueResultListPresenter class >> title [

^ 'Critique Browser'
]

{ #category : 'icons' }
StSingleCritiqueResultListPresenter class >> wrenchOrangeIcon [

Expand Down Expand Up @@ -207,6 +201,16 @@ StSingleCritiqueResultListPresenter >> critiquesOf: aRule [
a printString < b printString ])
]

{ #category : 'menu' }
StSingleCritiqueResultListPresenter >> defaultLayout [

^ SpBoxLayout newTopToBottom
add: #critiquesModel;
add: #toolbarModel height: 25;
add: #sourceCodeModel;
yourself
]

{ #category : 'private' }
StSingleCritiqueResultListPresenter >> diffSeparator [

Expand Down Expand Up @@ -473,3 +477,9 @@ StSingleCritiqueResultListPresenter >> whenSelectedItemChangesOnListModel [
ifTrue: [ self setTextModelForTransformationRule: critique ]
ifFalse: [ self setTextModelForClassOrMethod: critique ] ] ] ]
]

{ #category : 'accessing' }
StSingleCritiqueResultListPresenter >> windowTitle [

^ 'Critique Browser'
]
12 changes: 6 additions & 6 deletions src/NewTools-Debugger/StDebugger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1548,15 +1548,15 @@ StDebugger >> warning: aString for: aPresenter [
popup
]

{ #category : 'initialization' }
StDebugger >> windoTitle [

^ self debuggerActionModel statusStringForContext
]

{ #category : 'initialization' }
StDebugger >> windowIcon [

^ self iconNamed: #smallDebug

]

{ #category : 'initialization' }
StDebugger >> windowTitle [

^ self debuggerActionModel statusStringForContext
]
11 changes: 6 additions & 5 deletions src/NewTools-Debugger/StDebuggerInspector.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ StDebuggerInspector class >> openOn: anObject [
^ (self on: (StInspectorModel on: anObject)) open
]

{ #category : 'specs' }
StDebuggerInspector class >> title [
^'Debugger Inspection'
]

{ #category : 'specs' }
StDebuggerInspector class >> toggleMaximizeAssertionSpec [
self maximizeAssertionSpec: self maximizeAssertionSpec not
Expand Down Expand Up @@ -309,3 +304,9 @@ StDebuggerInspector >> updateWith: inspectedObject [
self updateEvaluationPaneReceiver.
self restoreRawInspectionSelectionForContext: newContext
]

{ #category : 'accessing' }
StDebuggerInspector >> windowTitle [

^'Debugger Inspection'
]
2 changes: 1 addition & 1 deletion src/NewTools-FileBrowser/StFileSystemPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ StFileSystemPresenter >> openFolder: aFileReference [
{ #category : 'accessing' }
StFileSystemPresenter >> title: aString [

title := aString.
title := aString
]

{ #category : 'accessing' }
Expand Down
10 changes: 6 additions & 4 deletions src/NewTools-Inspector/StInspectorPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ StInspectorPresenter >> updateTitle [

self isRoot ifFalse: [ ^ self ].
self withWindowDo: [ :window |
window title: self title ].
window title: self windowTitle ].
]

{ #category : 'initialization' }
Expand All @@ -292,16 +292,18 @@ StInspectorPresenter >> windowIcon [

{ #category : 'initialization' }
StInspectorPresenter >> windowTitle [

^ self model windowTitle
^ self model ifNotNil: [ :m | m windowTitle ] ifNil: [ 'Inspector']
]

{ #category : 'accessing' }
StInspectorPresenter >> withHeaderBar [
^withHeaderBar ifNil: [ withHeaderBar := true ]

^ withHeaderBar ifNil: [ withHeaderBar := true ]
]

{ #category : 'accessing' }
StInspectorPresenter >> withHeaderBar: bool [

withHeaderBar := bool
]
8 changes: 1 addition & 7 deletions src/NewTools-MethodBrowsers/StMessageBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ StMessageBrowser class >> taskbarIconName [
^#references
]

{ #category : 'specs' }
StMessageBrowser class >> title [

^ 'Message Browser'
]

{ #category : 'private' }
StMessageBrowser class >> usingLayout [

Expand Down Expand Up @@ -632,5 +626,5 @@ StMessageBrowser >> windowIsClosing [
{ #category : 'private' }
StMessageBrowser >> windowTitle [

^ (title ifNil: [ self class title ]), ' [' , messageList numberOfElements printString , ']'
^ (title ifNil: [ 'Message Browser' ]), ' [' , messageList numberOfElements printString , ']'
]
12 changes: 6 additions & 6 deletions src/NewTools-MethodBrowsers/StMethodToolbarPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ StMethodToolbarPresenter class >> example [
^ example
]

{ #category : 'specs' }
StMethodToolbarPresenter class >> title [

^ 'Toolbar'
]

{ #category : 'accessing' }
StMethodToolbarPresenter >> addItemLabeled: aString do: aBlock [
| item |
Expand Down Expand Up @@ -183,3 +177,9 @@ StMethodToolbarPresenter >> setModelBeforeInitialization: aMethod [

self method: aMethod
]

{ #category : 'accessing' }
StMethodToolbarPresenter >> windowTitle [

^ 'Toolbar'
]
20 changes: 10 additions & 10 deletions src/NewTools-Playground/StPlaygroundBindingsPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ StPlaygroundBindingsPresenter >> defaultLayout [
yourself
]

{ #category : 'initialization' }
StPlaygroundBindingsPresenter >> defaultWindowTitle [

^ 'Bindings'
]

{ #category : 'testing' }
StPlaygroundBindingsPresenter >> hasSelectedBinding [

Expand Down Expand Up @@ -229,14 +235,6 @@ StPlaygroundBindingsPresenter >> sortedBindingAssociations [
^ self bindings associations sort: [ :a | self isLocalBinding: a ] ascending
]

{ #category : 'initialization' }
StPlaygroundBindingsPresenter >> title [

parent withWindowDo: [ :w |
^ 'Bindings for {1}' format: { w title } ].
^ self windowTitle
]

{ #category : 'actions' }
StPlaygroundBindingsPresenter >> toggleSelectedBindingScope [

Expand Down Expand Up @@ -285,8 +283,10 @@ StPlaygroundBindingsPresenter >> updatePresenterWithSelection: aBlock [
newBindings ifNotEmpty: aBlock
]

{ #category : 'accessing' }
{ #category : 'initialization' }
StPlaygroundBindingsPresenter >> windowTitle [

^ 'Bindings'
parent withWindowDo: [ :w |
^ 'Bindings for {1}' format: { w windowTitle } ].
^ self defaultWindowTitle
]
11 changes: 6 additions & 5 deletions src/NewTools-Scopes-Editor/ScopeNodesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ ScopeNodesPresenter class >> reset [
LastSearch := nil
]

{ #category : 'specs' }
ScopeNodesPresenter class >> title [
^ 'Scope creator'
]

{ #category : 'private - actions' }
ScopeNodesPresenter >> activateItem: scopeNode [

Expand Down Expand Up @@ -470,3 +465,9 @@ ScopeNodesPresenter >> validate [
checkedScopeNodes ifEmpty: [ ^ false ].
^ true
]

{ #category : 'accessing' }
ScopeNodesPresenter >> windowTitle [

^ 'Scope creator'
]
11 changes: 6 additions & 5 deletions src/NewTools-Scopes-Editor/ScopesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ ScopesPresenter class >> refreshAllInstances [
self allInstances do: [ :each | each refresh ]
]

{ #category : 'specs' }
ScopesPresenter class >> title [
^ 'Scopes Editor'
]

{ #category : 'api' }
ScopesPresenter >> addScopeToTree: aRBEnvironment [

Expand Down Expand Up @@ -536,3 +531,9 @@ ScopesPresenter >> updateScopesTree [

scopesTree updateRootsKeepingSelection: self scopeNodes
]

{ #category : 'accessing' }
ScopesPresenter >> windowTitle [

^ 'Scope Editor'
]
10 changes: 5 additions & 5 deletions src/NewTools-Sindarin-Tools/StSindarinDebuggerPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ StSindarinDebuggerPresenter class >> defaultLayout [
yourself
]

{ #category : 'specs' }
StSindarinDebuggerPresenter class >> title [
^'Sindarin Debugger'
]

{ #category : 'initialization' }
StSindarinDebuggerPresenter >> buildToolbar [
| group |
Expand Down Expand Up @@ -93,3 +88,8 @@ StSindarinDebuggerPresenter >> stepOver [
self model stepOver.
self refresh
]

{ #category : 'stepping' }
StSindarinDebuggerPresenter >> windowTitle [
^'Sindarin Debugger'
]
6 changes: 3 additions & 3 deletions src/NewTools-Spotter/StSpotter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ StSpotter class >> createTips [

{ #category : 'accessing' }
StSpotter class >> defaultPreferredExtent [

self halt.
^ self isShowingPreview
ifTrue: [ (750@650) ]
ifFalse: [ (500@650) ]
ifTrue: [ (750@850) ]
ifFalse: [ (500@850) ]
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 73cf4d6

Please sign in to comment.