Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to plug a custom IDocument?(without using deprecated functionalities)
How to plug a custom IDocument? [message #1703468] Fri, 31 July 2015 19:39
Andrea Richiardi is currently offline Andrea RichiardiFriend
Messages: 3
Registered: July 2015
Junior Member
Hello all,

the open source project I am working on contains a parse tree, and the instance follows the life cycle of the TextEditor with which is associated.

But I was thinking that the right place should be an actual Document, a custom one, which will expose the tree as custom field/method.

My first question is: is this approach is correct?

The second question is, how do I create a custom IDocument after Eclipse 3.5 (which deprecated the creation factories)?

I gathered that I should extend a TextFileDocumentProvider, but I cannot exactly understand how/where to return my new Document instance from there. A code sample would be really really helpful...

Thanks!
Previous Topic:3.2 breaks document creation
Next Topic:Reosurce within project not recognized
Goto Forum:
  


Current Time: Thu Apr 25 06:46:15 GMT 2024

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

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

Back to the top