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:RSE passwords
Next Topic:Annoying string substitution validated when used as vm argument i run configuration
Goto Forum:

Current Time: Sat Mar 17 04:44:53 GMT 2018

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

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