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

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) {
// 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());
}
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?

Thanks

Adam

0 votes


Accepted answer

Permanent link
The load operation has a method #setEclipseSpecificLoadOptions(int) to set the option to import projects.
Adam Coulthard selected this answer as the correct answer

1 vote

Comments

Thanks Tim that did the trick, I'm not sure how I missed that one. 

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,948

Question asked: May 31 '13, 10:37 a.m.

Question was seen: 3,740 times

Last updated: Jun 03 '13, 3:33 a.m.

Confirmation Cancel Confirm