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

Local workspace full path - precondition

Hi,
How can I get the real path to a file using deliver operation precondition ?
I know I can get the path from the root folder of the eclipse project, but I want to get the path to the Eclipse project also (like : C:\first_folder\second_folder\abc.cob) .
Thanks.

0 votes



One answer

Permanent link
It sounds like you want to use a client-side precondition on deliver. 

Take a look at the AbstractShareableAdvisor. The bit close to:

ISharingManager sharingManager = FileSystemCore.getSharingManager();
Collection<IShareable> shareables = sharingManager.findShareables(sourceWorkspace, componentHandle, versionableHandle, changeMonitor.newChild(1));

is probably what you want.

0 votes

Comments

Note that the "ishareable" listed above should be "IShareable". For some reason the website is monkeying with my capitalization.

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

Question asked: Jul 15 '12, 8:33 a.m.

Question was seen: 4,915 times

Last updated: Jul 16 '12, 9:36 a.m.

Confirmation Cancel Confirm