-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1373 from SeasideSt/fixcontentsnotifying
Fix class browser example in Pharo12 and also update the correct version number...
- Loading branch information
Showing
3 changed files
with
10 additions
and
16 deletions.
There are no files selected for viewing
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
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
23 changes: 9 additions & 14 deletions
23
...de-Pharo-Development.package/WARPackageBasedBrowser.class/instance/messageCategoryList.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 |
---|---|---|
@@ -1,21 +1,16 @@ | ||
accessing | ||
messageCategoryList | ||
|
||
| all categories unclassified | | ||
all := #'-- all --'. "AllProtocol defaultName is fucked in Pharo 2.0" | ||
self selectedClass isNil | ||
ifTrue: [ ^ Array with: all ]. | ||
self selectedClass ifNil: [ ^ Array with: all ]. | ||
categories := self selectedClass organization categories. | ||
(categories notEmpty and: [ categories first = all ]) ifFalse: [ "all is only in 3.0+" | ||
categories := (Array with: all), categories ]. | ||
unclassified := (Smalltalk at: #Protocol) defaultName. "#unclassified only in 3.0+" | ||
categories := (Array with: all) , categories ]. | ||
unclassified := Protocol unclassified. "#unclassified only in 3.0+" | ||
^ (categories includes: unclassified) | ||
ifTrue: [ | ||
"'-- all --', 'as yet unclassified', rest sorted alphabetically" | ||
(Array | ||
with: categories first | ||
with: unclassified), | ||
(categories allButFirst copyWithout: unclassified) sorted ] | ||
ifFalse: [ | ||
"'-- all --', rest sorted alphabetically" | ||
(Array with: categories first), | ||
categories allButFirst sorted ] | ||
ifTrue: [ "'-- all --', 'as yet unclassified', rest sorted alphabetically" | ||
(Array with: categories first with: unclassified) | ||
, (categories allButFirst copyWithout: unclassified) sorted ] | ||
ifFalse: [ "'-- all --', rest sorted alphabetically" | ||
(Array with: categories first) , categories allButFirst sorted ] |