Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out subclass creation #1425

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SystemOrganization addCategory: #'Seaside-Pharo-Welcome'!
self packageOrganizer ensurePackage: #'Seaside-Pharo-Welcome' withTags: #()!
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ createComponent: componentName
self inform: '''', componentName, ''' is not a valid name for a component. Component names should begin with a letter. Please choose again.'.
^ nil ].

userComponent := WAComponent
subclass: componentName
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Seaside-User-Examples'.
userComponent := GRPlatform current
subclassOf: WAComponent
named: componentName
categorized: 'Seaside-User-Examples'.

userComponent isNil ifTrue: [
self inform: 'A problem occurred creating ''', componentName, ''' component..'.
Expand Down
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)!
Loading