<div dir="ltr">The plugin interface should let you do that. You can iterate over the top tabs in a frame and get their definitions texts and from there get the filenames and positions.<div><br></div><div style>You might want to consider doing something like mac os x's terminal app and instead of saving workspaces in files, instead just have a menu that lists a few workspaces that a user can choose to open up all those files, letting the user add and remove workspaces from that list.</div>
<div style><br></div><div style>Then, you'd just save the workspaces as preferences using the framework's preference library.</div><div style><br></div><div style>Let me know if you have more specific questions.</div>
<div style><br></div><div style>Robby</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 1, 2013 at 6:12 PM, Kieron Hardy <span dir="ltr"><<a href="mailto:kieron.hardy@gmail.com" target="_blank">kieron.hardy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi all,<br><br></div>I'd like to add a menu item (Workspace) to the DrRacket file menu that brings up a menu (Open, Save, Save As, Close, 1-n 'recent workspaces).<br>
<br></div><div>'Save/Save As' would take all the files open in the DrRacket window (and perhaps the location of the insertion point cursor and any text selection) and save them in a workspace file.<br>
<br>'Open' would take a workspace file, and open the listed files in separate tabs (and also perhaps moving the insertion point cursor and setting up text selections).<br><br></div><div>Does anyone have already such a thing? (I seem to remember some workspace management package on Planet but can't find anything now.)<br>
<br>If I need to implement myself where do I start? Thanks in advance for any hints or tips.<br><br>Cheers,<br><br>Kieron.</div><br></div>
<br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>