Skip to content

Commit

Permalink
remove class was not updating display
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Winger authored and Eric Winger committed Aug 17, 2018
1 parent 8439f69 commit 94614d3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions sources/JadeiteProjectsBrowserPresenter.cls
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ registerPresentersForUpdates
register: packageListPresenter
selector: #projectPackagesUpdate:browser:
browser: self.
BrowserUpdate current register: classListPresenter selector: #removedClass:.
BrowserUpdate current
register: classListPresenter
selector: #classesUpdate:browser:
Expand Down
5 changes: 5 additions & 0 deletions sources/Rowan UI Base.pax
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ package methodNames
add: #RowanCommandResult -> #projectPackagesUpdate:browser:;
add: #RowanCommandResult -> #projectSelectionUpdate:;
add: #RowanCommandResult -> #projectsUpdate:;
add: #RowanCommandResult -> #removedClass:;
add: #RowanCommandResult -> #superclassListUpdate:;
add: #RowanCommandResult -> #updateClassCategorySelectionsFor:;
add: #RowanCommandResult -> #updateClassHierarchySelectionFor:;
Expand Down Expand Up @@ -2223,6 +2224,9 @@ projectSelectionUpdate: aPresenter
projectsUpdate: aPresenter
!

removedClass: aPresenter
!

superclassListUpdate: presenter
!

Expand Down Expand Up @@ -2270,6 +2274,7 @@ updateType
!RowanCommandResult categoriesFor: #projectPackagesUpdate:browser:!public!updating! !
!RowanCommandResult categoriesFor: #projectSelectionUpdate:!public!updating! !
!RowanCommandResult categoriesFor: #projectsUpdate:!public!updating! !
!RowanCommandResult categoriesFor: #removedClass:!public!updating! !
!RowanCommandResult categoriesFor: #superclassListUpdate:!public!updating! !
!RowanCommandResult categoriesFor: #updateClassCategorySelectionsFor:!public!updating! !
!RowanCommandResult categoriesFor: #updateClassHierarchySelectionFor:!public!updating! !
Expand Down
7 changes: 7 additions & 0 deletions sources/RowanClassService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ releaseReferencedServices
remoteServiceName
^'Rowan classServiceClass'!

removedClass: presenter
| removal |
updateType == #removedClass: ifFalse: [^self].
removal := presenter list detect:[:classService | classService name = name] ifNone:[^self ].
presenter model remove: removal. !

removeSelector: selector

transport send: #removeSelector: to: remoteService withAll: (Array with: selector)!
Expand Down Expand Up @@ -315,6 +321,7 @@ variables
!RowanClassService categoriesFor: #projectName!accessing!private! !
!RowanClassService categoriesFor: #releaseReferencedServices!Init / Release!public! !
!RowanClassService categoriesFor: #remoteServiceName!must not strip!public! !
!RowanClassService categoriesFor: #removedClass:!public!updating! !
!RowanClassService categoriesFor: #removeSelector:!public!rowan! !
!RowanClassService categoriesFor: #replicateFrom:!public!replication! !
!RowanClassService categoriesFor: #sampleClassName!public! !
Expand Down
3 changes: 3 additions & 0 deletions sources/RowanService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ remoteService
remoteServiceName
self subclassResponsibility!

removedClass: aPresenter!

removeSampleSymbolDictionary

transport send: #removeSampleSymbolDictionary to: remoteService!
Expand Down Expand Up @@ -314,6 +316,7 @@ variableListUpdate: aPresenter! !
!RowanService categoriesFor: #releaseReferencedServices!Init / Release!public! !
!RowanService categoriesFor: #remoteService!public! !
!RowanService categoriesFor: #remoteServiceName!must not strip!public! !
!RowanService categoriesFor: #removedClass:!public!updating! !
!RowanService categoriesFor: #removeSampleSymbolDictionary!public! !
!RowanService categoriesFor: #replicateFrom:!public!replication!updating! !
!RowanService categoriesFor: #sampleDefinitions!examples!public! !
Expand Down

0 comments on commit 94614d3

Please sign in to comment.