Thanks for the pointers. Apologies in advance if this is a silly question, but how do I obtain the bindings to the drscheme:unit:frame<%> interface? Looking around the code, it seems that type is often imported into a tool unit, but I could not find any definition.
<br><br>-pp<br><br><br><div><span class="gmail_quote">On 10/4/06, <b class="gmail_sendername">Robby Findler</b> <<a href="mailto:robby@cs.uchicago.edu">robby@cs.uchicago.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I guess you'd want to iterate over all of the frames, via<br>get-top-level-windows. Find those that implement the<br>drscheme:unit:frame<%> interface, and then use the get-tabs method to<br>get the tabs in those frames. From those tabs, use get-defs to get the
<br>definitions text and from that use get-filename to get the filename. To<br>actually bring a different file to be editing, use handler:edit-file.<br>(It also works to open new files and open empty windows/tabs if you<br>
pass #f).<br><br> .... but ...<br><br>the get-tabs method doesn't exist in the 352 or anywhere else for that<br>matter, until just a minute ago when I added it to the svn version of<br>DrScheme.<br><br>It's an easy patch, if you'd rather patch your version of drscheme than
<br>get the svn version. Just look for get-tabs in the svn sources and copy<br>that one line into your version:<br><br><a href="http://svn.plt-scheme.org/plt/trunk/collects/drscheme/private/unit.ss">http://svn.plt-scheme.org/plt/trunk/collects/drscheme/private/unit.ss
</a><br><br>hth,<br>Robby<br><br>At Wed, 4 Oct 2006 17:32:57 -0500, "pedro pinto" wrote:<br>> Sorry, that was a rather cryptic post, here is some context:<br>><br>> <a href="http://list.cs.brown.edu/pipermail/plt-scheme/2006-July/014115.html">
http://list.cs.brown.edu/pipermail/plt-scheme/2006-July/014115.html</a><br>> -pp<br>><br>><br>> On 10/4/06, Robby Findler <<a href="mailto:robby@cs.uchicago.edu">robby@cs.uchicago.edu</a>> wrote:<br>> >
<br>> > At Wed, 4 Oct 2006 17:20:01 -0500, "pedro pinto" wrote:<br>> > > Hi there,<br>> > ><br>> > > I posted about this issue some months ago. I want to extend DrScheme<br>> > > with a change buffer dialog. Guillaume Marceau was kind enough to
<br>> > > point me to some example code [1], which seems to indicate that I have<br>> > > to transverse some objects, beginning at the editor<%> argument that<br>> > > is passed to my event handler, until I find someone that has the list
<br>> > > of open files. Unfortunately, I don't know my way around the framework<br>> > > very well. Can anyone point me in the right direction?<br>> ><br>> > > [1] <a href="http://list.cs.brown.edu/pipermail/plt-scheme/2006-May/013171.html">
http://list.cs.brown.edu/pipermail/plt-scheme/2006-May/013171.html</a><br>> ><br>> > I must have missed this message: what is a "change buffer" dialog? I<br>> > guess you don't mean the "Show Recently Opened Files in Separate
<br>> > Window" window? I guess you're trying to make a new keybinding too?<br>> ><br>> > The url you refer to seems to be a post by Danny Yoo, and I don't see<br>> > anything in the material you quoted in your original message. Sorry I'm
<br>> > not being more helpful ...<br>> ><br>> > Robby<br>> ><br>> ><br></blockquote></div><br>