Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

how to create repository workspace from snapshot ??

Hello Team

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

Do you have any idea ??

Thank u so much

0 votes


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link

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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: May 30 '17, 2:30 a.m.

Question was seen: 3,583 times

Last updated: Jan 11 '19, 4:17 p.m.

Confirmation Cancel Confirm