-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
CoreUpdates/6868-MethodSet-filter-fix-JuanVuletich-2024Nov28-11h01m-jmv.001.cs.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
'From Cuis7.1 [latest update: #6867] on 28 November 2024 at 11:07:48 am'! | ||
|
||
!MethodSet methodsFor: 'private' stamp: 'jmv 11/28/2024 11:06:34'! | ||
setFilteredList: newList | ||
"Establish newList as the new list if appropriate, and adjust the window title accordingly; if the new list is of the same size as the old, warn and do nothing" | ||
|
||
newList isEmpty | ||
ifTrue: [ | ||
^ self inform: 'Nothing would be left in the list if you did that']. | ||
newList size = messageList size | ||
ifTrue: [ | ||
^ self inform: 'That leaves the list unchanged']. | ||
self initializeMessageList: newList. | ||
self reformulateList. | ||
self changed: #relabel! ! | ||
|
||
|
||
!DirectoryEntry class methodsFor: 'base directories' stamp: 'jmv 11/28/2024 11:01:59'! | ||
userBaseDirectory | ||
"The top directory for files generated by the system on behalf of the user | ||
userBaseDirectory/SavedChangeSets Folder for saving new ChangeSets | ||
userBaseDirectory/Packages: Folder for new code packages | ||
userBaseDirectory/UserChanges: Folder to store user changes files | ||
userBaseDirectory/FileOuts: Folder for filed out code | ||
userBaseDirectory/Logs: Folder for error logs and other logs | ||
DirectoryEntry userBaseDirectory | ||
See #cuisBaseDirectory. See #currentDirectory." | ||
|
||
UserBaseDirectory notNil ifTrue: [ | ||
^ UserBaseDirectory ]. | ||
|
||
Smalltalk getCurrentWorkingDirectory ifNotNil: [ :wd | | ||
UserBaseDirectory := self withAbsolutePathName: wd ]. | ||
|
||
"If no OS current directory, use a sibling of #cuisBaseDirectory | ||
If OS current directory is same as #cuisBaseDirectory, take a sibling too" | ||
(UserBaseDirectory isNil or: [ UserBaseDirectory = self cuisBaseDirectory ]) ifTrue: [ | ||
UserBaseDirectory := self cuisBaseDirectory parent / (self cuisBaseDirectory name, '-UserFiles'). | ||
UserBaseDirectory assureExistence ]. | ||
|
||
^ UserBaseDirectory! ! | ||
|