Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
openInEnvironment: does not seem to exist anymore but it is sent #3112
And let's remember what Nautilus does in that cases.
For the record it did not work for FinderPragmaNode.
Calypso does not support RB environments. There is no way to open FullBrowser on set of classes and have same semantics like in Nautilus.
But listed users can be supported differently. The QueryBrowser can be opened on any Calypso queries. It can show classes, class comments and methods in same list. Particularly it is used to query sources for string.
ClyQueryBrowser openOn: (ClyConstantQuery returning: givenClasses)
It allows to fix 1, 2, 3. And I think it is generally better way to show classes to users. With Nautilus we saw packages in first place and I always found it a very strange approach.
The case with FinderPragmaNode (4) is just about senders. And fix is simple:
Smalltalk tools messageList browseSendersOf: self item
And NautilusRefactoring case needs to be removed. It is used to open browser for any kind of refactorings. But it just does not work for all refactoring cases:
NautilusRefactoring>>refactoringOptions: aRefactoring ... setOption: #openBrowser toUse: [ :ref :env | self openEnvironment: env for: ref]
Calypso commands already use this #openBrowser option in the places which need it and in the way which is appropriate for them. We can bravely remove this line and method.