Get IFileItems from plain java source file
One answer
From your other other question, if you have the IShareable for the file, then <tt>IShareable.getVersionable(monitor)</tt> gives you an IVersionableHandle which can be passed to
<tt>IItemManager#fetchCompleteItem(IItemHandle, int, IProgressMonitor)</tt> to get the full IFileItem.
You can get an ITeamRepository using <tt>RepositoryUtils.getTeamRepository(sharingDescriptor)</tt>, and then <tt>ITeamRepository.itemManager()</tt> give you the item manager.
<tt>IItemManager#fetchCompleteItem(IItemHandle, int, IProgressMonitor)</tt> to get the full IFileItem.
You can get an ITeamRepository using <tt>RepositoryUtils.getTeamRepository(sharingDescriptor)</tt>, and then <tt>ITeamRepository.itemManager()</tt> give you the item manager.