Hi VisualWorks users.
When I'm half-way through writing a method in a browser, how can I quickly get a list of instance variables in the current class? Currently I'm keeping a second browser open. Bonus question for extra points: in other Smalltalks, it is often possible to highlight text and then, with a keystroke, get implementers of that text as a method name, senders of that text as a method name, or open a browser on that text as a class name. Is there a way to do this in VW? Again, currently I'm keeping a spare browser open to investigate other classes and using the menus in the Transcript window to find implementers and senders of methods. It's a slow process that's annoying me. Thanks, Michael. -- http://gulik.pbwiki.com/ _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Michael van der Gulik wrote:
> When I'm half-way through writing a method in a browser, how can I > quickly get a list of instance variables in the current class? The quickest way I could find to get a list of instance variables was: Class | Instance Variables | References... (Ctrl+F5) Admittedly I've never used that for this purpose. At first I thought of clicking the instance variables tab at the top right, but that wants to accept the changed method first. Similarly for clicking the Comment or Definition tabs. What I've generally done is press Ctrl+Shift+B to open a new main browser tab - that's a feature of RBTabbedToolsets, which you can load with System | Load Parcels Named.... IMHO RBTabbedToolsets has the expected behavior of multiple tabs in an IDE: you can leave unsaved changes in a tab while you switch to other tabs. The other tabs in the browser don't behave like this, but I guess we're so used to them we don't notice that it's now surprising behavior. > Bonus question for extra points: in other Smalltalks, it is often > possible to highlight text and then, with a keystroke, get > implementers of that text as a method name, senders of that text as > a method name, or open a browser on that text as a class name. Is > there a way to do this in VW? With the method name selected, open the pop-up menu and you'll see: - Browse Senders of Selector (Ctrl+F11) - Browse Implementors of Selector (Ctrl+F12) The menu is context-sensitive, so if you have a class name or instance variable name selected it will contain appropriate actions for that instead. There's also always Explain (Ctrl+E), which will open a dialog listing where the selected element is defined, with a Browse button to open the definition/implementers in a new browser. All the best, Steve _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Michael van der Gulik-2
the quickest way to get the list of all instance variables is probably by inspecting "self allInstVarNames" or "self instVarNames".
There used to be a CodeTool that would show you a list of all instance variable names left of your text editor but i don't remember its name. What you can also do is press ctrl-n to open a new browser window with the current selection. Kind Regards Karsten Karsten Kusche - Dipl. Inf. - [hidden email] Georg Heeg eK - Köthen Handelsregister: Amtsgericht Dortmund A 12812 Am Montag, 28. Mai 2012 um 23:27 schrieb Michael van der Gulik:
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Michael van der Gulik-2
Dear Michael,
open another view and click the definition code tool tab, which all browsers have, or the instvars label, which 3-pane and 4-pane browsers have. You can swap between views with keyboard shortcuts: ALT + 1, ALT + 2 and so on. HTH Niall Ross >Hi VisualWorks users. > >When I'm half-way through writing a method in a browser, how can I >quickly get a list of instance variables in the current class? >Currently I'm keeping a second browser open. > >Bonus question for extra points: in other Smalltalks, it is often >possible to highlight text and then, with a keystroke, get >implementers of that text as a method name, senders of that text as >a method name, or open a browser on that text as a class name. Is >there a way to do this in VW? Again, currently I'm keeping a spare >browser open to investigate other classes and using the menus in the >Transcript window to find implementers and senders of methods. It's a >slow process that's annoying me. > >Thanks, >Michael. > > > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Steven Kelly
Thanks all for the responses. I'll try them tonight.
Michael. -- http://gulik.pbwiki.com/ _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Niall Ross
On May 29, 2012, at 8:41 AM, Niall Ross wrote:
Unless you have a Mac in which case none of the alt-key keyboard shortcuts work with any key qualifier (I've tried command, option and control). It's a bummer, I used to love Alt-t to switch to a test case. David _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Michael van der Gulik-2
On 5/28/2012 11:27 PM, Michael van der Gulik wrote:
> Hi VisualWorks users. > > When I'm half-way through writing a method in a browser, how can I > quickly get a list of instance variables in the current class? Load the package 'RBCodeModelWithVariables' from the open repository, then open a new browser R - _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |