How to find Stream name from IChangeSet/Component object from RTC using RTC client plain java libraries?
2 answers
It is important to understand that a change set (IChangeSet instance) is not associated with any stream or repository workspace at all, so your question does not really make sense.
An change set may or may not exist in the 'history' of a repository workspace (ex: In Eclipse or VS, if you were to right-click on a component in a workspace/stream and select "Show" --> "History", the change set may or may not exist in that list of change sets shown in the History view).
You can use the following server API to determine if a change set "exists in a stream/workspace":
IScmQueryService.findLocateChangeSets(ILocateChangeSetsSearchCriteria scope, IRepositoryProgressMonitorHandle repoMonitor)
Or you can use the following client-side API to determine if a change set "exists in a stream/workspace":
IWorkspaceManager.locateChangeSets(ILocateChangeSetsSearchCriteria scope, IProgressMonitor monitor)