-
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.
Factor out subclass creation and add Pharo 13 implementation.
- Loading branch information
Showing
5 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...Pharo-Welcome.package/GRPharoPlatform.extension/instance/subclassOf.named.categorized..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,12 @@ | ||
*Seaside-Pharo-Welcome | ||
subclassOf: aSuperClass named: aNameSymbol categorized: aCategoryString | ||
^ (aSuperClass respondsTo: #<<) | ||
ifTrue: [ | ||
aSuperClass << aNameSymbol | ||
package: aCategoryString; | ||
install ] | ||
ifFalse: [ | ||
super | ||
subclassOf: aSuperClass | ||
named: aNameSymbol | ||
categorized: aCategoryString ] |
2 changes: 1 addition & 1 deletion
2
repository/Seaside-Pharo-Welcome.package/monticello.meta/categories.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 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-Pharo-Welcome'! | ||
self packageOrganizer ensurePackage: #'Seaside-Pharo-Welcome' withTags: #()! |
8 changes: 8 additions & 0 deletions
8
...ry/Seaside-Welcome.package/GRPlatform.extension/instance/subclassOf.named.categorized..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,8 @@ | ||
*Seaside-Welcome | ||
subclassOf: aSuperClass named: aNameSymbol categorized: aCategoryString | ||
^ aSuperClass | ||
subclass: aNameSymbol | ||
instanceVariableNames: '' | ||
classVariableNames: '' | ||
poolDictionaries: '' | ||
category: aCategoryString |
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
4 changes: 1 addition & 3 deletions
4
repository/Seaside-Welcome.package/monticello.meta/categories.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,3 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-Welcome'! | ||
SystemOrganization addCategory: #'Seaside-Welcome-Base'! | ||
SystemOrganization addCategory: #'Seaside-Welcome-Examples'! | ||
self packageOrganizer ensurePackage: #'Seaside-Welcome' withTags: #(#Base #Examples)! |