Working Set Selection Programmatically in Eclipse
问题 I want to achieve the functionality of selecting a working set programmatically. I tried with the below code: IWorkingSetManager wsMgr = PlatformUI.getWorkbench().getWorkingSetManager(); IWorkingSet ws = wsMgr.getWorkingSet("custom"); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkingSet[] windowset = new IWorkingSet[]{ws}; page.setWorkingSets(windowset); But the above code does not work and the Project Explorer does not show the working set.