Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Get IDocument from IFile
Get IDocument from IFile [message #1731019] Mon, 02 May 2016 09:24
Mehdi Alouache is currently offline Mehdi AlouacheFriend
Messages: 9
Registered: April 2016
Location: France
Junior Member

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 09:24]

Report message to a 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: Sat Sep 22 00:59:21 GMT 2018

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

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

Back to the top