Skip to content

Commit

Permalink
method source update
Browse files Browse the repository at this point in the history
Method updates should not update the browser if the proper method isn't selected
  • Loading branch information
Eric Winger authored and Eric Winger committed Aug 15, 2018
1 parent 1707f66 commit 151b5c6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion sources/JadeiteProjectsBrowserPresenter.cls
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ registerPresentersForUpdates
selector: #classMethodsUpdate:browser:
browser: self.
BrowserUpdate current register: methodListPresenter selector: #methodsRemoved:.
BrowserUpdate current register: methodSourcePresenter selector: #methodSourceUpdate:!
BrowserUpdate current register: methodSourcePresenter selector: #methodSourceUpdate:browser: browser: self. !

releasedReferencedServices: selectionChangingEvent
selectionChangingEvent window presenter selectionOrNil
Expand Down
6 changes: 3 additions & 3 deletions sources/Rowan UI Base.pax
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ package methodNames
add: #RowanCommandResult -> #filterUpdate:browser:;
add: #RowanCommandResult -> #globalsUpdate:;
add: #RowanCommandResult -> #methodFilterUpdate:;
add: #RowanCommandResult -> #methodSourceUpdate:;
add: #RowanCommandResult -> #methodSourceUpdate:browser:;
add: #RowanCommandResult -> #methodsRemoved:;
add: #RowanCommandResult -> #methodsUpdate:;
add: #RowanCommandResult -> #packagesUpdate:;
Expand Down Expand Up @@ -2203,7 +2203,7 @@ globalsUpdate: presenter!
methodFilterUpdate: presenter
!

methodSourceUpdate: presenter
methodSourceUpdate: presenter browser: anObject
!

methodsRemoved: presenter
Expand Down Expand Up @@ -2263,7 +2263,7 @@ updateType
!RowanCommandResult categoriesFor: #filterUpdate:browser:!public!updating! !
!RowanCommandResult categoriesFor: #globalsUpdate:!public!updating! !
!RowanCommandResult categoriesFor: #methodFilterUpdate:!public!updating! !
!RowanCommandResult categoriesFor: #methodSourceUpdate:!public!updating! !
!RowanCommandResult categoriesFor: #methodSourceUpdate:browser:!public!updating! !
!RowanCommandResult categoriesFor: #methodsRemoved:!public!updating! !
!RowanCommandResult categoriesFor: #methodsUpdate:!public!updating! !
!RowanCommandResult categoriesFor: #packagesUpdate:!public!updating! !
Expand Down
14 changes: 8 additions & 6 deletions sources/RowanMethodService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,13 @@ methodDefinitions: anObject
methodDefinitions := anObject.
self trigger: #changed!

methodSourceUpdate: presenter
presenter value: source.
presenter view
backcolor: JadeTextStyles default colorForNoEdits;
isModified: false!
methodSourceUpdate: presenter browser: browser
browser methodListPresenter selection = self
ifTrue:
[presenter value: source.
presenter view
backcolor: JadeTextStyles default colorForNoEdits;
isModified: false]!

oop

Expand Down Expand Up @@ -351,7 +353,7 @@ user: anObject
!RowanMethodService categoriesFor: #meta:!accessing!private! !
!RowanMethodService categoriesFor: #methodDefinitions!accessing!private! !
!RowanMethodService categoriesFor: #methodDefinitions:!accessing!private! !
!RowanMethodService categoriesFor: #methodSourceUpdate:!public!updating! !
!RowanMethodService categoriesFor: #methodSourceUpdate:browser:!public!updating! !
!RowanMethodService categoriesFor: #oop!public! !
!RowanMethodService categoriesFor: #oopType!public! !
!RowanMethodService categoriesFor: #packageName!accessing!private! !
Expand Down
5 changes: 3 additions & 2 deletions sources/RowanService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ isTestCase
methodFilterUpdate: presenter
!

methodSourceUpdate: presenter!
methodSourceUpdate: presenter browser: anObject
!

methodsRemoved: presenter
!
Expand Down Expand Up @@ -293,7 +294,7 @@ variableListUpdate: aPresenter! !
!RowanService categoriesFor: #isProjectService!public!testing! !
!RowanService categoriesFor: #isTestCase!public!testing! !
!RowanService categoriesFor: #methodFilterUpdate:!public!updating! !
!RowanService categoriesFor: #methodSourceUpdate:!public!updating! !
!RowanService categoriesFor: #methodSourceUpdate:browser:!public!updating! !
!RowanService categoriesFor: #methodsRemoved:!public!updating! !
!RowanService categoriesFor: #methodsUpdate:!public!updating! !
!RowanService categoriesFor: #name!accessing!public! !
Expand Down

0 comments on commit 151b5c6

Please sign in to comment.