[plt-scheme] DrScheme internals question: how to query details about files opened?

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue May 15 14:55:30 EDT 2007

On 5/15/07, Grant Rettke <grettke at acm.org> wrote:
> On 5/15/07, Robby Findler <robby at cs.uchicago.edu> wrote:
> > On 5/15/07, Grant Rettke <grettke at acm.org> wrote:
> > > On 5/15/07, Robby Findler <robby at cs.uchicago.edu> wrote:
> > > > Do you have the editor already? If not, you probably need to go via
> > > > the group (search "group:"), iterate over the frames, get the tabs,
> > > > iterate over them.
> > >
> > > This would be what I imagine as a typical usage scenario. You start
> > > the IDE and open up some files. At this point, should one expect to
> > > "have the editor"?
> >
> > When I wrote "have the editor", I meant that in a technical sense:
> > there is some value in the program (perhaps bound to a variable) that
> > is an object whose class matches the editor<%> interface.
>
> Right now it looks like the tool would override the on-activate?
> function. I think that function would have access to the internals of
> the frame%, and that frame would probably know about all of its
> editors.

Yes, it does. Search for "tab" in Help Desk. Skip down to the parts of
the tools manual. You want the definitions text (text% is a class that
implements editor<%>) from each tab. Or maybe, you just want the
definitions text for the tab that is currently focused.

Robby


Posted on the users mailing list.