Dear all,
where I can find some documentation about extending/modifying the RB? thanks and cheers Marco D'Ambros _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
If you want to add rewrite rules, see the Tools Guide. But, if you want to
revise the browser itself, there is no documentation. You have to read the code. Bruce ----- Original Message ----- From: "Marco D'Ambros" <[hidden email]> To: <[hidden email]> Sent: Thursday, August 07, 2008 4:53 AM Subject: [vwnc] Refactory browser documentation > Dear all, > > where I can find some documentation about extending/modifying the RB? > > thanks and cheers > Marco D'Ambros > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
> If you want to add rewrite rules, see the Tools Guide. ...which covers the "normal" rewrite rule syntax, but not the advanced features which are described here: http://www.cincomsmalltalk.com/blog/blogView?showComments=true&entry=3236371324 http://www.cincomsmalltalk.com/userblogs/runarj/blogView?showComments=true&entry=3263297804 > But, if you want to > revise the browser itself, there is no documentation. You have to read the > code. :-( Joachim _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Thanks for the advices... Looking at some examples in the code, I found out that to add a tab in the code view (like source, comments, code critic etc.) I should create a subclass of: - CodeToolSelectionPolicy - and implement #name (the name displayed on the tab) #codeToolClassForClass: aBehavior (if I want the tab to appear when selecting a class) #initialize (on the class side) which is just ^self addSelectionPolicy - CodeTool, which is the class containing the canvas to be displayed. I looked at examples which implement just those things and after calling the initialize method (on the class side), they worked. I tried to create my own but the tab does not appear... Do I miss something? Thanks and cheers Marco On Aug 7, 2008, at 5:09 PM, Joachim Geidel wrote:
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
On Aug 8, 2008, at 12:21 AM, Marco D'Ambros wrote: > > Thanks for the advices... > > Looking at some examples in the code, I found out that to add a tab > in the code view (like source, comments, code critic etc.) I should > create a subclass of: > - CodeToolSelectionPolicy - and implement > #name (the name displayed on the tab) > #codeToolClassForClass: aBehavior (if I want the tab to appear when > selecting a class) > #initialize (on the class side) which is just ^self > addSelectionPolicy > - CodeTool, which is the class containing the canvas to be displayed. > > I looked at examples which implement just those things and after > calling the initialize method (on the class side), they worked. > I tried to create my own but the tab does not appear... > > Do I miss something? What version of VW are you using? If you're using 7.6, this has been changed/simplified. If you're in that lineage, all you have to do is create a subclass of CodeTool, implement the desired APIs found in the 'Tab APIs' method category, and add a registration method to the class side of CodeModel (see the class side 'tool registration' method category for examples). -- Travis Griggs Objologist "Dying men never wish they'd spent more time at the office" _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
This thread reminded me of the notes on RB architecture I wrote some
time ago, and with Travis' help I found them. They are two years old and say much less than could be said on the subject, but it's more than what used to be available. See here: http://blog.3plus4.org/2008/08/14/inside-the-refactoring-browser/ Cheers, --Vassili _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Marco D'Ambros
If you use 7.6, you might want to look at
http://www.cincomsmalltalk.com/publicRepository/RBSourceCodeSearch.html . This tab extension to the RB is very simple and should help you understand how to add your own tool. Runar 2008/8/8 Marco D'Ambros <[hidden email]>: > > Thanks for the advices... > Looking at some examples in the code, I found out that to add a tab in the > code view (like source, comments, code critic etc.) I should create a > subclass of: > - CodeToolSelectionPolicy - and implement > #name (the name displayed on the tab) > #codeToolClassForClass: aBehavior (if I want the tab to appear when > selecting a class) > #initialize (on the class side) which is just ^self addSelectionPolicy > - CodeTool, which is the class containing the canvas to be displayed. > I looked at examples which implement just those things and after calling the > initialize method (on the class side), they worked. > I tried to create my own but the tab does not appear... > Do I miss something? > Thanks and cheers > Marco > > On Aug 7, 2008, at 5:09 PM, Joachim Geidel wrote: > > Am 07.08.08 15:47 schrieb Bruce Boyer: >> If you want to add rewrite rules, see the Tools Guide. > > ...which covers the "normal" rewrite rule syntax, but not the advanced > features which are described here: > http://www.cincomsmalltalk.com/blog/blogView?showComments=true&entry=3236371324 > http://www.cincomsmalltalk.com/userblogs/runarj/blogView?showComments=true&entry=3263297804 > >> But, if you want to >> revise the browser itself, there is no documentation. You have to read >> the >> code. > > :-( > > Joachim > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |