Skip to content

Commit

Permalink
Update Paradise menu to support Node.js applications
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikOnBike committed Mar 1, 2024
1 parent 68e412d commit c1d2737
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ CpServerApplication class >> clientLoaded: anAnnouncement [
yourself
]

{ #category : #testing }
CpServerApplication class >> hasAbstractTag [

"Answer whether the receiver has the 'isAbstract' tag set"

^ self classSide includesSelector: #isAbstractTag
]

{ #category : #testing }
CpServerApplication class >> isAbstractTag [

"The method is present to indicate the receiver is abstract.
This method will NOT be evaluated to decide if the receiver is abstract."
]

{ #category : #'instance creation' }
CpServerApplication class >> newInEnvironment: aServerEnvironment [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,23 @@ CpDevTools class >> actionReset [

{ #category : #accessing }
CpDevTools class >> allApplications [
"Answer all the defined CP web applications"

"Answer all the defined applications (both browser and Node.js based).
Implementation:
Only applications which do not have the 'isAbstract' tag set will be answered."

^ CpServerApplication allSubclasses
reject: [ :each | each hasAbstractTag ]
]

{ #category : #accessing }
CpDevTools class >> allWebApplications [

"Answer all the defined web applications (i.e. only browser based applications)"

^ CpWebApplication allSubclasses select: [ :c | c class includesSelector: #app ]
^ self allApplications
select: [ :each | each inheritsFrom: CpWebApplication ]
]

{ #category : #accessing }
Expand Down Expand Up @@ -71,7 +85,7 @@ CpDevTools class >> open [
<script>

| choices |
choices := self allApplications collect: [ :a | a app ].
choices := self allWebApplications collect: [ :a | a app ].

(UIManager default
chooseFrom: choices
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ CpMvpWebApplication class >> clientBehaviorClass [
^ CpMvpWebClientBehavior
]

{ #category : #testing }
CpMvpWebApplication class >> isAbstractTag [

"The method is present to indicate the receiver is abstract.
This method will NOT be evaluated to decide if the receiver is abstract."
]

{ #category : #presenter }
CpMvpWebApplication >> allPresentersDo: aBlock [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ Class {
#instVars : [
'presentation'
],
#category : 'CodeParadise-WebApplication-Presentation-Application'
#category : #'CodeParadise-WebApplication-Presentation-Application'
}

{ #category : #testing }
CpPresentationWebApplication class >> isAbstractTag [

"The method is present to indicate the receiver is abstract.
This method will NOT be evaluated to decide if the receiver is abstract."
]

{ #category : #accessing }
CpPresentationWebApplication >> applicationModel [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ CpWebApplication class >> initialize [
IdentifierGenerator := CpWebIdentifierGenerator new
]

{ #category : #testing }
CpWebApplication class >> isAbstractTag [

"The method is present to indicate the receiver is abstract.
This method will NOT be evaluated to decide if the receiver is abstract."
]

{ #category : #'development support' }
CpWebApplication class >> openInBrowser [

Expand Down

0 comments on commit c1d2737

Please sign in to comment.