Project not showing in eclipse after API load
Hi,
Using the API I've managed to get the my eclipse project loaded into the local Sandbox using code along the lines of:
for(IComponentHandle component : components) {I can see that the project has been correctly loaded onto disk but I'm unable to see it within Eclipse, I can use eclipse API to add the project into eclipse but it does not have the connection with the repository workspace. How using the API can I achieve this connection?
// Obtain the List of Folders that have been changed for that component
Collection<IVersionableHandle> projects = workspaceWrapper.getProjectsChanged(component);
// Setup the request for load
loadOperation.requestLoad(eclipseSandbox, null, workspaceWrapper.getConnection(), component, projects);
}
// Evaluate the load requests that have been created
loadOperation.evaluateLoadRequests(null);
IComponentSyncManager syncMgr = FileSystemResourcesPlugin.getComponentSyncModel().getComponentSyncManager();
syncMgr.loading(workspaceWrapper.getConnection());
try {
loadOperation.run(null);
} finally {
syncMgr.loadingDone(workspaceWrapper.getConnection());
}
Thanks
Adam