It's all about the answers!

Ask a question

how to create repository workspace from snapshot ??


vinitha dsouza (71635) | 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 (3.9k7) | answered Jan 11, 4:17 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
See:
IWorkspaceManager.createWorkspace(
            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: https://jazz.net/forum/questions/239886/how-to-create-a-stream-from-a-snapshot-programatically

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 (54.1k13641) | answered May 30 '17, 2:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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 https://rsjazz.wordpress.com/2014/02/21/adding-context-menus-for-jazz-objects-to-the-rtc-eclipse-client/ 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.