Reputation: 159
I am developing an eclipse plugin, and I want to use the workingSet selection of the other windows in mine, too. I tried to get all selected working sets (besides the invisible ones) by the workingSetManager, however for some reason it does not give me the selection. It returns all working sets...
IWorkingSetManager workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager();
return workingSetManager.getWorkingSets();
Upvotes: 0
Views: 24
Reputation: 111216
The 'Window > Working Sets' menu item (you may have to customize the perspective to see this) configures the active working sets for the current page. You can get this set by using IWorkbenchPage.getWorkingSets()
Individual views may be configured not to use working sets, or to use the workbench page working set, or to use a set configured in the view. Each view does this differently and I don't think there is a defined way to find out which the view is using.
Upvotes: 2