Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how can I create my own Document for some file extensions
how can I create my own Document for some file extensions [message #314839] Wed, 25 April 2007 09:51 Go to next message
Eclipse UserFriend
Originally posted by: andrew_simon0.lycos.com

Hi,
For some file extensions I was creating my own Document (an extension
of org.eclipse.jface.text.Document) using
org.eclipse.core.filebuffers.documentCreation extension point and an
implementation of IDocumentFactory.

But now both IDocumentFactor and
org.eclipse.core.filebuffers.documentCreation extension have been
deprecated so I was wondering what I should do.
Re: how can I create my own Document for some file extensions [message #314845 is a reply to message #314839] Wed, 25 April 2007 12:48 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Andrew wrote:

> Hi,
> For some file extensions I was creating my own Document (an
> extension of org.eclipse.jface.text.Document) using
> org.eclipse.core.filebuffers.documentCreation extension point and an
> implementation of IDocumentFactory.
> But now both IDocumentFactor and
> org.eclipse.core.filebuffers.documentCreation extension have been
> deprecated so I was wondering what I should do.
>
You would have to create a wrapper around the document you get from the
file buffer.

Dani
Re: how can I create my own Document for some file extensions [message #314861 is a reply to message #314845] Wed, 25 April 2007 16:07 Go to previous message
Eclipse UserFriend
Originally posted by: andrew_simon0.lycos.com

Thanks,
But I am a little confused about how it will be done. I have overridden
some methods of Document class like replace() etc. I am not sure how I can
provide the wrapper while still getting the same behavior. Any help will
be appreciated.
Previous Topic:Markers use too much RAM
Next Topic:Composite similar to tabbed properties available
Goto Forum:
  


Current Time: Fri Sep 13 11:17:48 GMT 2024

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

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

Back to the top