Setting workspace configuration based on stream using Java client API (RTC 4.0.3)
One answer
I guess the easiest way to get around this is to create a new workspace directly from an existing stream:
ITeamRepository repo; public IWorkspaceConnection createWorkspaceFromStream(IContributorHandle owner, IWorkspaceHandle stream) { IWorkspaceConnection streamConn = SCMPlatform.getWorkspaceManager(repo).getWorkspaceConnection(stream, monitor);
return SCMPlatform.getWorkspaceManager(repo).createWorkspace(owner, "Workspace1", "This workspace was created automatically", streamConn, streamConn, monitor); }