getting streams from team area
2 answers
Hi,
Can anyone please tell me how can i obtain the available streams in a given team area programmatically?
Like there is a method to create a stream (createStream in IWorkspaceManager), is there another to obtain the all created streams?
Sonali
I need to find this out too. Did you figure it out Sonali?
In case anyone is still trying to figure this out:
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repository);
IWorkspaceSearchCriteria wsSearchCriteria = IWorkspaceSearchCriteria.FACTORY.newInstance();
wsSearchCriteria.setKind(IWorkspaceSearchCriteria.STREAMS);
wsSearchCriteria.setPartialOwnerNameIgnoreCase([i]nameOfProject[/i]);
List <IWorkspaceHandle> workspaceHandles = wm.findWorkspaces(wsSearchCriteria, Integer.MAX_VALUE, new SysoutProgressMonitor());