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

Force to load IShareable

Hello, I'm trying to get IShareable from file to link it with repository. It's works in following way:

IShareable selectedShareable = (IShareable)selectedFile.getAdapter(IShareable.class);

Unfortunately sometimes selectedShareable is equals to null, because as I suppose it wasn't able to connect properly yet. If I'll wait link will be established, but is there a way to force linking of IShareable object with IFile?

0 votes

Comments

That is all internal and unsupported API, I would be surprised if you get an answer. I would suggest you search for IShareable or getAdapter and try to figure in what context they run. Maybe you have to run an asynchronous job, or there is a utility wrapper.


Be the first one to answer this question!

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
× 11,078

Question asked: Oct 16 '17, 5:11 a.m.

Question was seen: 2,749 times

Last updated: Oct 17 '17, 3:13 a.m.

Confirmation Cancel Confirm