Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Get IDocument from IFile
Get IDocument from IFile [message #1731019] Mon, 02 May 2016 05:24
Eclipse UserFriend
Hi,

I am currently trying to retrieve an IDocument from an IFile instance.

Information about the current situation :
- My Editor instantiates a class, providing an IFile
- This class parses the IFile in order to find XML references to other files (not necessarily opened in the editor).
- The class tries to instantiates new IFiles from them (succeeds), but fails when trying to get IDocument from the IFile.

I found some topics online dealing with IDocumentProvider, but unfortunately that's not working for me (returns null).
The URI parsed from the XML file are verified and correctly built, so I don't know where does the problem comes from.

Any help would be appreciated.

Thanks for reading

[Updated on: Mon, 02 May 2016 05:24] by Moderator

Previous Topic:FIles in $HOME/.p2 repo corrupted, but bundle analyzer finds nothing wrong
Next Topic:Annoying string substitution validated when used as vm argument i run configuration
Goto Forum:
  


Current Time: Wed Mar 26 10:56:59 EDT 2025

Powered by FUDForum. Page generated in 0.02598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top