1

Is there any API or way in which we can get the RTC stream name from the Project explorer or Navigator view selection in eclipse. I am creating a RTC util which needs some basic inputs like stream name or project (that user select on navigator), which in turn communicates with RTC in doing our project related activies.

Project explorer / Navigator shows the users local repository name, but i am unable go get those, these two views provide the file as IFile or IResource(IFolder, IProject.. etc) or ICompliationUnits. which gives only the path of the file.

So Is there anyway where i can get those stream name from those project/file that user select.

Thanks in advance.

4

1 回答 1

1

我终于找到了一点探索。就这样。一旦项目(创建)或通过 RTC 加载,项目就会将附加细节添加到其标签中,例如 RTC 组件和它们来自的存储库。

由于 Project explorer 视图是一个树查看器,因此将选择转换为 TreeSelection 并使用 getText() 方法获取该树项的完整显示名称。通过解析给出用户存储库名称。使用它作为存储库名称,查询用户“WORKSPACE”的 RTC 并获取用户存储库连接并获取其流目标(交付和接受),这主要是创建用户存储库的位置。

这解决了我的问题,因为我只想要当前的交付流目标(无论从哪里创建用户存储库)。

获取源代码库

于 2013-08-10T23:46:52.773 回答