Skip to content

Commit

Permalink
Solves small issuel
Browse files Browse the repository at this point in the history
  • Loading branch information
carolahp committed Oct 16, 2023
1 parent 68d0a87 commit 1a52dbf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NewTools-Scopes-Browser/ScopesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ ScopesPresenter >> deleteSelectedScope [

| item |
item := scopesTree selectedItem.
self assert: item isScopeNode.
(item isNil or: [item isScopeNode not]) ifTrue: [
self inform: 'select a scope'.
^ self ].

model removeScope: item value.
self updateScopesTree
Expand Down
11 changes: 11 additions & 0 deletions src/NewTools-Scopes/ScopesManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ Class {
#tag : 'Core'
}

{ #category : 'accessing' }
ScopesManager class >> addScope: aScope [
self singleInstance addScope: aScope
]

{ #category : 'accessing' }
ScopesManager class >> availableScopes [

^ self scopes
]

{ #category : 'accessing' }
ScopesManager class >> invalidNames [
^ self scopes collect: [ :e | e label ]
Expand Down

0 comments on commit 1a52dbf

Please sign in to comment.