views:

153

answers:

2

Hi all,

Whenever I switch working sets in the project explorer, the working set does not switch for the search and call hierarchy views, so I end up with search results from the wrong working set if I forget to switch those over manually.

Is there a shortcut for switching working sets in all those tools simultaneously?

Thanks!

A: 

Not sure there is a direct way, but what you can try is (just for testing) to associate one perspective to one working set.
I.e. define a package explorer, a search view and a call hierarchy view:

  • all set to working set WS1 in perspective P1.
  • all set to working set WS2 in perspective P2.

That way, you should be able to switch perspective, effectively switching working set at the same time.

VonC
+1  A: 

There is a special working set concept in Eclipse called Window working set which is basically a 'centralized' way of managing your working sets.

You can set up your working sets in Window / Working Sets. Most views which have support for working sets have an option to select this special working set (as you can see here). After finishing the setup you can turn on/off your active working set in Window / Working Sets and all views are automatically use the changed values.

Project explorer, call hierarchy and search support this feature.

Csaba_H
Thanks for your response. This sounds like exactly what I want. However, my version (GALILEO, Eclipse IDE for C/C++ Developers, Build id: 20090619-0625) does not have a "Window | Working Sets" menu item. The working set selectors in project explorer, etc. allow me to select a window working set (there are the three radio buttons, including "Window Working Sets"), but I can't figure out how to create a window working set. Thanks for any more tips you can provide about this.
stupakov
If you do not see that menu item go to Window / Customize Perspective..., select the Command Groups Availability tab and turn on the Window Working Set group. After that you should have that menu item in the Window menu.
Csaba_H