Skip to content

Commit

Permalink
Fixes #81 - Change browser walkback
Browse files Browse the repository at this point in the history
the changes browser is a hack and will be replaced. If we get an error trying to find a change in our image, just put up a nice dialog box saying the change cannot be browsed instead.
  • Loading branch information
Eric Winger authored and Eric Winger committed Aug 21, 2018
1 parent 6054553 commit c4a74a9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sources/Rowan UI Base.pax
Original file line number Diff line number Diff line change
Expand Up @@ -2327,9 +2327,15 @@ browseChangedThing
selection := operationListPresenter selectionOrNil.
selection isNil ifTrue: [^MessageBox notify: 'Nothing to browse'].
selection isRemoval ifTrue: [^MessageBox notify: 'Cannot browse a removed item'].

[classService := RowanClassService named: selection className.
shell := JadeiteProjectsSystemBrowser showOnSession: gciSession.
classService := RowanClassService named: selection className.
shell currentCard updateServices: (Array with: classService).
shell currentCard updateServices: (Array with: classService)]
on: Error
do:
[:ex |
shell destroy.
MessageBox notify: 'The change you have selected cannot be browsed'].
shell currentCard updateAfterFindClass: classService!

operationSelected
Expand Down

0 comments on commit c4a74a9

Please sign in to comment.