It's all about the answers!

Ask a question

how to create repository workspace from snapshot ??

vinitha dsouza (14719122) | asked May 30 '17, 2:30 a.m.

Hello Team

I want to create a repository workspace from a snapshot programmatically?

Do you have any idea ??

Thank u so much

Accepted answer

permanent link
David Lafreniere (4.8k7) | answered Jan 11 '19, 4:17 p.m.
            IContributorHandle scopeHandle,
            String workspaceName,
            String description,
            IBaselineSetHandle sourceBaselineSet,
            IProgressMonitor progressMonitor)

Note: We have API to create a workspace from a snapshot, but not for creating a stream from a snapshot... you'd have to write more steps to do this (the steps are exactly what Ralph suggested), but see the answer in:

Also see Ralph's suggestion which gives you the tools to look up this information from the various Eclipse RTC actions.
Ralph Schoon selected this answer as the correct answer

One other answer

permanent link
Ralph Schoon (63.1k33646) | answered May 30 '17, 2:46 a.m.

There are tools available that allow to understand the class that is called for actions in the Eclipse UI. That way, you can basically look into the RTC Eclipse client and what it does. For example see for some hints.

Other than that my best guess what goes on.

The tool will have to
  • Create a repository workspace
  • Access the snapshot and get the components and the baselines referenced in the baseline set (snapshot)
  • For each component baseline
    • Add the component with the baseline set to the repository workspace

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.