Author Topic: SE18 How can I have a seperate set of open files for each project  (Read 2986 times)

ted

  • Community Member
  • Posts: 19
  • Hero Points: 0
In SE18 when I switch projects the files from the current project remain open and any files that used to be open in the project being switched to are also opened. When I switch projects I want SE to remember what files were open and close those files, then open the remembered files for the project being switched to. This used to work in SE17. In SE17 when I switched projects the files that were open in the current project would close and then the files for the project being switched to would be opened. Is there an option I can set that will make SE18 work like it did for me in SE17? I looked around but could not find anything.

Each project is in its own workspace. When I create a project I set the Create new workspace option.

Thanks,
Ted

Dennis

  • Senior Community Member
  • Posts: 3968
  • Hero Points: 517
Re: SE18 How can I have a seperate set of open files for each project
« Reply #1 on: August 02, 2013, 06:52:08 PM »
Turn on "Auto restore workspace files"

Tools > Options > Application Options > Auto Restore

ted

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: SE18 How can I have a seperate set of open files for each project
« Reply #2 on: August 02, 2013, 07:48:02 PM »
Auto restore workspace files is ON.

I experimented around and I think the problem is when I switch projects the files currently open are not being closed. I noticed this when I create a new project. The main editor window goes blank like it closed that file but all the rest of my files still show up in the Defs tab on the left side. Also when I try to close all the files using File->CloseAll that does not work. The files stay open. I have to close them individually or go to the Files tab on the left side, highlight a bunch of files then right click and select close.

Any ideas on why the files stay open when switching projects? Here are all my Auto Restore settings from top to bottom
ON
OFF
ON
OFF
ON
ON
OFF
ON
OFF

Also most of the files are RO and am using the -sallowopenrw flag on vs.exe

Ted


byates

  • Senior Community Member
  • Posts: 106
  • Hero Points: 8
Re: SE18 How can I have a seperate set of open files for each project
« Reply #3 on: August 03, 2013, 06:47:06 PM »
I prefer that when I switch projects within a workspace, the file set I was working on previously (with that project) is restored.  I couldn't find a way to do this through the settings (workspace, yes, projects, no) so I wrote the attached macro.  It stores the current open window states in the project file as XML entries when you switch projects and then restores them when you switch back.
  • Turn off "Auto restore workspace files" to prevent SE from fighting this macro.
  • To install, open the macro in SE then load the macro using the "load" command.  Use "unload" to disable.

ted

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: SE18 How can I have a seperate set of open files for each project
« Reply #4 on: August 05, 2013, 03:48:25 PM »
byates,
Thanks for the macro. I always use seperate workspaces but another guy at work uses multiple projects per workspace so I will pass the macro along to him.

Dennis,
I figured out how to get things working. Problem was related to the fact that the project I had open was an old project from SE17. Even though SE18 beta picked up the workspace from SE17 and things seemed fine there must have been some issues under the hood. I closed the workspace, closed all the files, deleted the old workspace, closed and reopened SE and created a project from scratch. I then created a second project. Everything is working fine now when I switch between the new projects. With these new workspaces the drop down files->close all works fine. I am going to delete all my existing workspaces and start everything from scratch.

Thanks,
Ted