Skip to main content



      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 05: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 08:48 Go to previous messageGo to next message
Eclipse UserFriend
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 12: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: Mon May 05 10:55:38 EDT 2025

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

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

Back to the top