It's all about the answers!

Ask a question

Force to load IShareable


Michael Ron (307) | asked Oct 16 '17, 5:11 a.m.
edited Oct 16 '17, 5:51 p.m. by Geoffrey Clemm (30.1k33035)

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?


Comments
Ralph Schoon commented Oct 17 '17, 3:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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 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.