The Trunk: System-mt.1526.mcz
[email protected] Mon, 27 Jul 2026 13:50:43 0000
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1526.mcz
==================== Summary ====================
Name: System-mt.1526
Author: mt
Time: 27 July 2026, 3:50:41.615457 pm
UUID: a73e70dd-7b74-5f49-a6eb-6bbc6d8b8562
Ancestors: System-ct.1525
Complement Morphic-mt.2222
=============== Diff against System-ct.1525 ===============
Item was changed:
----- Method: Project>>okToChange (in category 'release') -----
okToChange
"Answer whether the window in which the project is housed can be dismissed -- which is destructive. We never clobber a project without confirmation"
| answer |
(self isCurrentProject and: [self isTopProject]) ifTrue:
[self inform: 'You cannot close the top project.'.
^ false].
((Preferences valueOfFlag: #checkForUnsavedProjects) ==>
+ [Project uiManager
+ confirm: 'Do you really want to delete this project and all its contents?' translated
+ title: self name])
- [self confirm: ('Do you really want to delete the project\{1}\and all its content?' translated withCRs format:{self name})])
ifFalse: [^ false].
self subProjects ifNotEmpty:
[:sp |
answer := Project uiManager
chooseOptionFrom:
#("1" 'Lift all sub-projects'
"2" 'Discard all sub-projects (NO UNDO!!)'
"3 or 0" 'Cancel')"<-- needs simpler dialogue with a proper cancel button"
lines: #(2)
title: ('The project {1}\contains {2} sub-project(s).' translated withCRs format:{self name. sp size}).
(answer = 0 or: [answer = 3]) ifTrue: [^ false].
answer = 1 ifTrue: [self liftSubProjects. ^ true].
answer = 2 ifTrue:
[^ sp allSatisfy:
[:ea |
[ea okToChange] valueSuppressingMessages: {'*delete the project*and all its content*'}]]].
^ true!
Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]