Skip to content

Commit

Permalink
Remove calls to SpWindowPresenter>>#extent:
Browse files Browse the repository at this point in the history
  • Loading branch information
ClotildeToullec committed Sep 3, 2024
1 parent b9f6de9 commit 2c42153
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/MooseIDE-CoUsageMap/MiCoMenuManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ MiCoMenuManager >> fillTagMenu: menu for: aMiCoBox [

{ #category : #'building - menus' }
MiCoMenuManager >> iconFormFor: aMiCoTag [

^ (FormCanvas extent: 15 asPoint)
fillColor: aMiCoTag color;
form
fillColor: aMiCoTag color;
form
]

{ #category : #accessing }
Expand Down
7 changes: 5 additions & 2 deletions src/MooseIDE-Meta/MiImportModelFromFileDialog.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ MiImportModelFromFileDialog class >> windowExtent [
{ #category : #action }
MiImportModelFromFileDialog >> closeEntitiesChoice [

self withWindowDo: [ :window | window extent: self class windowExtent ]
self layout: self defaultLayout.

self withWindowDo: [ :window |
window resize: self class windowExtent ]
]

{ #category : #initialization }
Expand Down Expand Up @@ -278,7 +281,7 @@ MiImportModelFromFileDialog >> openEntitiesChoice [
on: importingContext.

self withWindowDo: [ :window | "The double #window is a patch for a spec bug. August 2024"
window window extent: self class fullWindowExtent ].
window resize: self class fullWindowExtent ].

self layout: (self defaultLayout
add: customEntities;
Expand Down
6 changes: 3 additions & 3 deletions src/MooseIDE-Meta/MiImportModelFromSmalltalkDialog.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ MiImportModelFromSmalltalkDialog >> defaultLayout [
MiImportModelFromSmalltalkDialog >> hideAdvancedSettings [

advancedSettingsButton icon: (self iconNamed: #arrowDown).
self withWindowDo: [ :window |
window extent: self class windowExtent ].
self withWindowDo: [ :window |
window resize: self class windowExtent ].
self layout: self defaultLayout
]

Expand Down Expand Up @@ -254,7 +254,7 @@ MiImportModelFromSmalltalkDialog >> showAdvancedSettings [

advancedSettingsButton icon: (self iconNamed: #arrowUp).
self withWindowDo: [ :window |
window extent: self class fullWindowExtent ].
window resize: self class fullWindowExtent ].
self layout: (self simpleLayout
add: advancedSettingsButton height: self class buttonHeight;
add: self advancedSettingsLayout;
Expand Down

0 comments on commit 2c42153

Please sign in to comment.