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?
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 17 '17, 3:13 a.m.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.