How can i get the "my repository workspace" programmatically with plain java API
I have to do few operation with the following parameters
ITeamRepository repo, IWorkspaceHandle workspace, IComponentHandle component, String sandboxLocation_CanBeNullIfRunningFromWithinEclipseRTC
In all these parameter i am not able to find IWorkspaceHandle workspace programmatically.
Please provide solution ASAP.
Thanks!!
One answer
Comments
i done in the same way but after getting workspace connection when i am calling new function with the following parameter
(IteamRepository arg0,IWorkSpaceHandle arg1, IComponentHandle arg2,String arg4)
i am getting exception
java.lang.RuntimeException: Uanble to find sandbox for given Workspace/Component
at com.ibm.team.aspice.traceability.TraceabilityRTCPlainJavaAPI.registerSandboxAndCheckWorkspaceComponent(Unknown Source)
at com.ibm.team.aspice.traceability.TraceabilityRTCPlainJavaAPI.getAssociations(Unknown Source)
at com.ibm.team.aspice.traceability.TraceabilityRTCPlainJavaAPI.getAllAssociations(Unknown Source)
What function are you calling after getting WorkspaceConnection ?
It is not a generic method, it was provided by ibm for my organization.
Now i found a problem behind this, before calling that function i have to load workspace.
I am new with RTC, can you help me to load workspace with the help of plain java api.
Thanks!!
ISharingManager sharingManager = FileSystemCore.getSharingManager();