Skip to content

Commit

Permalink
Creates Cly environment for Scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
carolahp committed Nov 13, 2023
1 parent c370a99 commit caab5eb
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions src/NewTools-Scopes/ScopeClyEnvironment.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
Class {
#name : 'ScopeClyEnvironment',
#superclass : 'Object',
#instVars : [
'environment',
'name',
'packageOrganizer',
'projectManager',
'scope',
'changesAnnouncer'
],
#category : 'NewTools-Scopes-Calypso',
#package : 'NewTools-Scopes',
#tag : 'Calypso'
}

{ #category : 'converting' }
ScopeClyEnvironment >> asGlobalScopeIn: aNavigationEnvironment [

^ClySystemEnvironmentScope of: self in: aNavigationEnvironment named: name
]

{ #category : 'accessing' }
ScopeClyEnvironment >> changesAnnouncer: anObject [
changesAnnouncer := anObject
]

{ #category : 'class management' }
ScopeClyEnvironment >> definedClassesInPackage: aRPackage [
self flag: 'Consider orphan classes'.
^ aRPackage definedClasses
]

{ #category : 'as yet unclassified' }
ScopeClyEnvironment >> extensionMethodsInPackage: aRBPackage [

^ aRBPackage extensionMethods
]

{ #category : 'accessing' }
ScopeClyEnvironment >> name [
^ 'aScopeEnv (',scope label, ')'
]

{ #category : 'accessing' }
ScopeClyEnvironment >> packages [
^ scope packages
]

{ #category : 'accessing' }
ScopeClyEnvironment >> scope: aRBEnvironment [
scope := aRBEnvironment
]

{ #category : 'system changes' }
ScopeClyEnvironment >> subscribe: aClyNavigationEnvironment [

self subscribe: aClyNavigationEnvironment for: SystemAnnouncement
]

{ #category : 'initialization' }
ScopeClyEnvironment >> subscribe: anObject for: anAnnouncementClass [
"SystemAnnouncer uniqueInstance weak when: anAnnouncementClass send: #systemChanged: to: anObject"
self when: anAnnouncementClass send: #systemChanged: to: anObject.
self flag: 'Caro, implement me later, skip for now'

]

{ #category : 'initialization' }
ScopeClyEnvironment >> unsubscribe: anObject [
changesAnnouncer unsubscribe: anObject
]

{ #category : 'announcer' }
ScopeClyEnvironment >> when: anAnnouncementClass send: aSelector to: anObject [
changesAnnouncer weak when: anAnnouncementClass send: aSelector to: anObject
]

0 comments on commit caab5eb

Please sign in to comment.