Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Content of "ERROR" When Opening External File in my Editor
Content of "ERROR" When Opening External File in my Editor [message #272564] Thu, 23 September 2004 10:52 Go to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

Hi Everyone,

I am trying to figure out why I cannot open an external file in my
editor. When I do, I get a blank Outline view, and the editor contains
nothing but a single, horizontal blue line, followed by "ERROR". I
figured I would try my hand at an ASCII-art rendition of the problem
rather than post a screenshot. My editor looks like:

+---------X-+ +--------X-+
| Filename | | Outline |
+--------------------------------------------+-------------- ---+
| | |
| | |
| | |
|============================================| |
|ERROR | |
| | |
+--------------------------------------------+-------------- ---+

My Outline view is blank as well. Anyway - I have beat my face against
the monitor long enough to realize I don't know where to start looking
on this one. If I place the same file in a Project in my workspace and
open it, I get a proper editor with syntax highlighting and an Outline
view. I can open other files associated with other editors (the CDT
C-Editor for instance) with no issues, so obviously I have done
something wrong in my editor implementation. Can any of the guru's here
point me in the right direction?

Thanks,
Mark.
Re: Content of "ERROR" When Opening External File in my Editor [message #272590 is a reply to message #272564] Thu, 23 September 2004 17:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

*sigh*

This deserves another...

**SIGH**

It appears that all of the document providers for the editors in Eclipse
3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
provide support for opening arbitrary files from the filesystem. This
is completely different from previous versions and looks like a HUGE
undertaking to convert my old FileDocumentProvider-based classes to the
new paradigm. It took me forever to figure this stuff out the last time!

I have been trying for the last 3 hours or so to get this to work, and
while I can now open external files, all of my syntax highlighting and
document partitioning is broken. Is there a document somewhere that
describes how to do it the "new" way?

Mark.

Mark Melvin wrote:

> Hi Everyone,
>
> I am trying to figure out why I cannot open an external file in my
> editor. When I do, I get a blank Outline view, and the editor contains
> nothing but a single, horizontal blue line, followed by "ERROR". I
> figured I would try my hand at an ASCII-art rendition of the problem
> rather than post a screenshot. My editor looks like:
>
> +---------X-+ +--------X-+
> | Filename | | Outline |
> +--------------------------------------------+-------------- ---+
> | | |
> | | |
> | | |
> |============================================| |
> |ERROR | |
> | | |
> +--------------------------------------------+-------------- ---+
>
> My Outline view is blank as well. Anyway - I have beat my face against
> the monitor long enough to realize I don't know where to start looking
> on this one. If I place the same file in a Project in my workspace and
> open it, I get a proper editor with syntax highlighting and an Outline
> view. I can open other files associated with other editors (the CDT
> C-Editor for instance) with no issues, so obviously I have done
> something wrong in my editor implementation. Can any of the guru's here
> point me in the right direction?
>
> Thanks,
> Mark.
Re: Content of "ERROR" When Opening External File in my Editor [message #272597 is a reply to message #272590] Thu, 23 September 2004 19:58 Go to previous messageGo to next message
Eclipse UserFriend
I did the conversion of the Ant editor and the Java snippet editor and I
know of no document.
I can offer up the Ant editor or the JavaSnippet editor as the examples.
Two extension points that you are going to need to make use of are the:
org.eclipse.core.filebuffers.documentCreation
org.eclipse.core.filebuffers.documentSetup
See the Ant editor and the classes it makes use of to satisfy these
extensions to create the required factory and setup participant.

HTH and I will keep an eye out for your questions
Darins

"Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
news:civfti$ucv$1@eclipse.org...
> *sigh*
>
> This deserves another...
>
> **SIGH**
>
> It appears that all of the document providers for the editors in Eclipse
> 3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
> provide support for opening arbitrary files from the filesystem. This
> is completely different from previous versions and looks like a HUGE
> undertaking to convert my old FileDocumentProvider-based classes to the
> new paradigm. It took me forever to figure this stuff out the last time!
>
> I have been trying for the last 3 hours or so to get this to work, and
> while I can now open external files, all of my syntax highlighting and
> document partitioning is broken. Is there a document somewhere that
> describes how to do it the "new" way?
>
> Mark.
>
> Mark Melvin wrote:
>
> > Hi Everyone,
> >
> > I am trying to figure out why I cannot open an external file in my
> > editor. When I do, I get a blank Outline view, and the editor contains
> > nothing but a single, horizontal blue line, followed by "ERROR". I
> > figured I would try my hand at an ASCII-art rendition of the problem
> > rather than post a screenshot. My editor looks like:
> >
> > +---------X-+ +--------X-+
> > | Filename | | Outline |
> > +--------------------------------------------+-------------- ---+
> > | | |
> > | | |
> > | | |
> > |============================================| |
> > |ERROR | |
> > | | |
> > +--------------------------------------------+-------------- ---+
> >
> > My Outline view is blank as well. Anyway - I have beat my face against
> > the monitor long enough to realize I don't know where to start looking
> > on this one. If I place the same file in a Project in my workspace and
> > open it, I get a proper editor with syntax highlighting and an Outline
> > view. I can open other files associated with other editors (the CDT
> > C-Editor for instance) with no issues, so obviously I have done
> > something wrong in my editor implementation. Can any of the guru's here
> > point me in the right direction?
> >
> > Thanks,
> > Mark.
Re: Content of "ERROR" When Opening External File in my Editor [message #272604 is a reply to message #272597] Thu, 23 September 2004 22:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

Thanks, Darin. I was looking at the Ant editor, but I'll take another
look at the JavaSnippet editor. Thanks for the pointer to those
extension points too.

FWIW - I have been using the Ant plugins as my default design reference.
They always seem to be the easiest to follow, and very clean. Nice
job...and thanks.

Mark.

Darin Swanson wrote:

> I did the conversion of the Ant editor and the Java snippet editor and I
> know of no document.
> I can offer up the Ant editor or the JavaSnippet editor as the examples.
> Two extension points that you are going to need to make use of are the:
> org.eclipse.core.filebuffers.documentCreation
> org.eclipse.core.filebuffers.documentSetup
> See the Ant editor and the classes it makes use of to satisfy these
> extensions to create the required factory and setup participant.
>
> HTH and I will keep an eye out for your questions
> Darins
>
> "Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
> news:civfti$ucv$1@eclipse.org...
>
>>*sigh*
>>
>>This deserves another...
>>
>>**SIGH**
>>
>>It appears that all of the document providers for the editors in Eclipse
>>3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
>>provide support for opening arbitrary files from the filesystem. This
>>is completely different from previous versions and looks like a HUGE
>>undertaking to convert my old FileDocumentProvider-based classes to the
>>new paradigm. It took me forever to figure this stuff out the last time!
>>
>>I have been trying for the last 3 hours or so to get this to work, and
>>while I can now open external files, all of my syntax highlighting and
>>document partitioning is broken. Is there a document somewhere that
>>describes how to do it the "new" way?
>>
>>Mark.
>>
>>Mark Melvin wrote:
>>
>>
>>>Hi Everyone,
>>>
>>>I am trying to figure out why I cannot open an external file in my
>>>editor. When I do, I get a blank Outline view, and the editor contains
>>>nothing but a single, horizontal blue line, followed by "ERROR". I
>>>figured I would try my hand at an ASCII-art rendition of the problem
>>>rather than post a screenshot. My editor looks like:
>>>
>>>+---------X-+ +--------X-+
>>>| Filename | | Outline |
>>> +--------------------------------------------+-------------- ---+
>>>| | |
>>>| | |
>>>| | |
>>>|============================================| |
>>>|ERROR | |
>>>| | |
>>> +--------------------------------------------+-------------- ---+
>>>
>>>My Outline view is blank as well. Anyway - I have beat my face against
>>>the monitor long enough to realize I don't know where to start looking
>>>on this one. If I place the same file in a Project in my workspace and
>>>open it, I get a proper editor with syntax highlighting and an Outline
>>>view. I can open other files associated with other editors (the CDT
>>>C-Editor for instance) with no issues, so obviously I have done
>>>something wrong in my editor implementation. Can any of the guru's here
>>>point me in the right direction?
>>>
>>>Thanks,
>>>Mark.
>
>
>
Re: Content of "ERROR" When Opening External File in my Editor [message #272784 is a reply to message #272597] Mon, 27 September 2004 14:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

Hey Darin,

Well, after much frustrating work on this, I finally re-read your post -
this time with my eyes open... - and remembered that you mentioned a
couple of extension points. After implementing the documentSetup one,
things seemed to start clicking into place and I now have something that
works with one exception.

I can't seem to get a left gutter with line numbers to appear in any of
my editors that are opened on an external file. I have the editor
preference turned on to show line numbers, and it works fine for files
in my workspace, but not external files. Toggling the preference
doesn't make a difference. I'm going to dig into this one next, but any
suggestions on where to start would be most welcome...

Thanks again,
Mark.

Darin Swanson wrote:
> I did the conversion of the Ant editor and the Java snippet editor and I
> know of no document.
> I can offer up the Ant editor or the JavaSnippet editor as the examples.
> Two extension points that you are going to need to make use of are the:
> org.eclipse.core.filebuffers.documentCreation
> org.eclipse.core.filebuffers.documentSetup
> See the Ant editor and the classes it makes use of to satisfy these
> extensions to create the required factory and setup participant.
>
> HTH and I will keep an eye out for your questions
> Darins
>
> "Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
> news:civfti$ucv$1@eclipse.org...
>
>>*sigh*
>>
>>This deserves another...
>>
>>**SIGH**
>>
>>It appears that all of the document providers for the editors in Eclipse
>>3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
>>provide support for opening arbitrary files from the filesystem. This
>>is completely different from previous versions and looks like a HUGE
>>undertaking to convert my old FileDocumentProvider-based classes to the
>>new paradigm. It took me forever to figure this stuff out the last time!
>>
>>I have been trying for the last 3 hours or so to get this to work, and
>>while I can now open external files, all of my syntax highlighting and
>>document partitioning is broken. Is there a document somewhere that
>>describes how to do it the "new" way?
>>
>>Mark.
>>
>>Mark Melvin wrote:
>>
>>
>>>Hi Everyone,
>>>
>>>I am trying to figure out why I cannot open an external file in my
>>>editor. When I do, I get a blank Outline view, and the editor contains
>>>nothing but a single, horizontal blue line, followed by "ERROR". I
>>>figured I would try my hand at an ASCII-art rendition of the problem
>>>rather than post a screenshot. My editor looks like:
>>>
>>>+---------X-+ +--------X-+
>>>| Filename | | Outline |
>>> +--------------------------------------------+-------------- ---+
>>>| | |
>>>| | |
>>>| | |
>>>|============================================| |
>>>|ERROR | |
>>>| | |
>>> +--------------------------------------------+-------------- ---+
>>>
>>>My Outline view is blank as well. Anyway - I have beat my face against
>>>the monitor long enough to realize I don't know where to start looking
>>>on this one. If I place the same file in a Project in my workspace and
>>>open it, I get a proper editor with syntax highlighting and an Outline
>>>view. I can open other files associated with other editors (the CDT
>>>C-Editor for instance) with no issues, so obviously I have done
>>>something wrong in my editor implementation. Can any of the guru's here
>>>point me in the right direction?
>>>
>>>Thanks,
>>>Mark.
>
>
>
Re: Content of "ERROR" When Opening External File in my Editor [message #272788 is a reply to message #272784] Mon, 27 September 2004 14:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

Hmm....it appears the CEditor as well as the Ant editor also suffer from
this. Bug or feature? I'll go search Bugzilla... At least I didn't
mess something else up. ;o)

Mark.

Mark Melvin wrote:

> Hey Darin,
>
> Well, after much frustrating work on this, I finally re-read your post -
> this time with my eyes open... - and remembered that you mentioned a
> couple of extension points. After implementing the documentSetup one,
> things seemed to start clicking into place and I now have something that
> works with one exception.
>
> I can't seem to get a left gutter with line numbers to appear in any of
> my editors that are opened on an external file. I have the editor
> preference turned on to show line numbers, and it works fine for files
> in my workspace, but not external files. Toggling the preference
> doesn't make a difference. I'm going to dig into this one next, but any
> suggestions on where to start would be most welcome...
>
> Thanks again,
> Mark.
>
> Darin Swanson wrote:
>
>> I did the conversion of the Ant editor and the Java snippet editor and I
>> know of no document.
>> I can offer up the Ant editor or the JavaSnippet editor as the examples.
>> Two extension points that you are going to need to make use of are the:
>> org.eclipse.core.filebuffers.documentCreation
>> org.eclipse.core.filebuffers.documentSetup
>> See the Ant editor and the classes it makes use of to satisfy these
>> extensions to create the required factory and setup participant.
>>
>> HTH and I will keep an eye out for your questions
>> Darins
>>
>> "Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
>> news:civfti$ucv$1@eclipse.org...
>>
>>> *sigh*
>>>
>>> This deserves another...
>>>
>>> **SIGH**
>>>
>>> It appears that all of the document providers for the editors in Eclipse
>>> 3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
>>> provide support for opening arbitrary files from the filesystem. This
>>> is completely different from previous versions and looks like a HUGE
>>> undertaking to convert my old FileDocumentProvider-based classes to the
>>> new paradigm. It took me forever to figure this stuff out the last
>>> time!
>>>
>>> I have been trying for the last 3 hours or so to get this to work, and
>>> while I can now open external files, all of my syntax highlighting and
>>> document partitioning is broken. Is there a document somewhere that
>>> describes how to do it the "new" way?
>>>
>>> Mark.
>>>
>>> Mark Melvin wrote:
>>>
>>>
>>>> Hi Everyone,
>>>>
>>>> I am trying to figure out why I cannot open an external file in my
>>>> editor. When I do, I get a blank Outline view, and the editor contains
>>>> nothing but a single, horizontal blue line, followed by "ERROR". I
>>>> figured I would try my hand at an ASCII-art rendition of the problem
>>>> rather than post a screenshot. My editor looks like:
>>>>
>>>> +---------X-+ +--------X-+
>>>> | Filename | | Outline |
>>>> +--------------------------------------------+-------------- ---+
>>>> | | |
>>>> | | |
>>>> | | |
>>>> |============================================| |
>>>> |ERROR | |
>>>> | | |
>>>> +--------------------------------------------+-------------- ---+
>>>>
>>>> My Outline view is blank as well. Anyway - I have beat my face against
>>>> the monitor long enough to realize I don't know where to start looking
>>>> on this one. If I place the same file in a Project in my workspace and
>>>> open it, I get a proper editor with syntax highlighting and an Outline
>>>> view. I can open other files associated with other editors (the CDT
>>>> C-Editor for instance) with no issues, so obviously I have done
>>>> something wrong in my editor implementation. Can any of the guru's
>>>> here
>>>> point me in the right direction?
>>>>
>>>> Thanks,
>>>> Mark.
>>
>>
>>
>>
Re: Content of "ERROR" When Opening External File in my Editor [message #272792 is a reply to message #272784] Mon, 27 September 2004 14:56 Go to previous messageGo to next message
Eclipse UserFriend
I believe you have hit the level of support defined by the framework for
external files.

If you figure things out differently let me know
https://bugs.eclipse.org/bugs/show_bug.cgi?id=63127

Darins

"Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
news:cj9lfv$o9t$1@eclipse.org...
> Hey Darin,
>
> Well, after much frustrating work on this, I finally re-read your post -
> this time with my eyes open... - and remembered that you mentioned a
> couple of extension points. After implementing the documentSetup one,
> things seemed to start clicking into place and I now have something that
> works with one exception.
>
> I can't seem to get a left gutter with line numbers to appear in any of
> my editors that are opened on an external file. I have the editor
> preference turned on to show line numbers, and it works fine for files
> in my workspace, but not external files. Toggling the preference
> doesn't make a difference. I'm going to dig into this one next, but any
> suggestions on where to start would be most welcome...
>
> Thanks again,
> Mark.
>
> Darin Swanson wrote:
> > I did the conversion of the Ant editor and the Java snippet editor and I
> > know of no document.
> > I can offer up the Ant editor or the JavaSnippet editor as the examples.
> > Two extension points that you are going to need to make use of are the:
> > org.eclipse.core.filebuffers.documentCreation
> > org.eclipse.core.filebuffers.documentSetup
> > See the Ant editor and the classes it makes use of to satisfy these
> > extensions to create the required factory and setup participant.
> >
> > HTH and I will keep an eye out for your questions
> > Darins
> >
> > "Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
> > news:civfti$ucv$1@eclipse.org...
> >
> >>*sigh*
> >>
> >>This deserves another...
> >>
> >>**SIGH**
> >>
> >>It appears that all of the document providers for the editors in Eclipse
> >>3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
> >>provide support for opening arbitrary files from the filesystem. This
> >>is completely different from previous versions and looks like a HUGE
> >>undertaking to convert my old FileDocumentProvider-based classes to the
> >>new paradigm. It took me forever to figure this stuff out the last
time!
> >>
> >>I have been trying for the last 3 hours or so to get this to work, and
> >>while I can now open external files, all of my syntax highlighting and
> >>document partitioning is broken. Is there a document somewhere that
> >>describes how to do it the "new" way?
> >>
> >>Mark.
> >>
> >>Mark Melvin wrote:
> >>
> >>
> >>>Hi Everyone,
> >>>
> >>>I am trying to figure out why I cannot open an external file in my
> >>>editor. When I do, I get a blank Outline view, and the editor contains
> >>>nothing but a single, horizontal blue line, followed by "ERROR". I
> >>>figured I would try my hand at an ASCII-art rendition of the problem
> >>>rather than post a screenshot. My editor looks like:
> >>>
> >>>+---------X-+ +--------X-+
> >>>| Filename | | Outline |
> >>> +--------------------------------------------+-------------- ---+
> >>>| | |
> >>>| | |
> >>>| | |
> >>>|============================================| |
> >>>|ERROR | |
> >>>| | |
> >>> +--------------------------------------------+-------------- ---+
> >>>
> >>>My Outline view is blank as well. Anyway - I have beat my face against
> >>>the monitor long enough to realize I don't know where to start looking
> >>>on this one. If I place the same file in a Project in my workspace and
> >>>open it, I get a proper editor with syntax highlighting and an Outline
> >>>view. I can open other files associated with other editors (the CDT
> >>>C-Editor for instance) with no issues, so obviously I have done
> >>>something wrong in my editor implementation. Can any of the guru's
here
> >>>point me in the right direction?
> >>>
> >>>Thanks,
> >>>Mark.
> >
> >
> >
Re: Content of "ERROR" When Opening External File in my Editor [message #272794 is a reply to message #272792] Mon, 27 September 2004 14:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

Right. Also found this one:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=68734

Thanks again,
Mark.

Darin Swanson wrote:

> I believe you have hit the level of support defined by the framework for
> external files.
>
> If you figure things out differently let me know
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=63127
>
> Darins
>
> "Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
> news:cj9lfv$o9t$1@eclipse.org...
>
>>Hey Darin,
>>
>>Well, after much frustrating work on this, I finally re-read your post -
>>this time with my eyes open... - and remembered that you mentioned a
>>couple of extension points. After implementing the documentSetup one,
>>things seemed to start clicking into place and I now have something that
>>works with one exception.
>>
>>I can't seem to get a left gutter with line numbers to appear in any of
>>my editors that are opened on an external file. I have the editor
>>preference turned on to show line numbers, and it works fine for files
>>in my workspace, but not external files. Toggling the preference
>>doesn't make a difference. I'm going to dig into this one next, but any
>>suggestions on where to start would be most welcome...
>>
>>Thanks again,
>>Mark.
>>
>>Darin Swanson wrote:
>>
>>>I did the conversion of the Ant editor and the Java snippet editor and I
>>>know of no document.
>>>I can offer up the Ant editor or the JavaSnippet editor as the examples.
>>>Two extension points that you are going to need to make use of are the:
>>> org.eclipse.core.filebuffers.documentCreation
>>> org.eclipse.core.filebuffers.documentSetup
>>>See the Ant editor and the classes it makes use of to satisfy these
>>>extensions to create the required factory and setup participant.
>>>
>>>HTH and I will keep an eye out for your questions
>>>Darins
>>>
>>>"Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
>>>news:civfti$ucv$1@eclipse.org...
>>>
>>>
>>>>*sigh*
>>>>
>>>>This deserves another...
>>>>
>>>>**SIGH**
>>>>
>>>>It appears that all of the document providers for the editors in Eclipse
>>>>3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
>>>>provide support for opening arbitrary files from the filesystem. This
>>>>is completely different from previous versions and looks like a HUGE
>>>>undertaking to convert my old FileDocumentProvider-based classes to the
>>>>new paradigm. It took me forever to figure this stuff out the last
>
> time!
>
>>>>I have been trying for the last 3 hours or so to get this to work, and
>>>>while I can now open external files, all of my syntax highlighting and
>>>>document partitioning is broken. Is there a document somewhere that
>>>>describes how to do it the "new" way?
>>>>
>>>>Mark.
>>>>
>>>>Mark Melvin wrote:
>>>>
>>>>
>>>>
>>>>>Hi Everyone,
>>>>>
>>>>>I am trying to figure out why I cannot open an external file in my
>>>>>editor. When I do, I get a blank Outline view, and the editor contains
>>>>>nothing but a single, horizontal blue line, followed by "ERROR". I
>>>>>figured I would try my hand at an ASCII-art rendition of the problem
>>>>>rather than post a screenshot. My editor looks like:
>>>>>
>>>>>+---------X-+ +--------X-+
>>>>>| Filename | | Outline |
>>>>> +--------------------------------------------+-------------- ---+
>>>>>| | |
>>>>>| | |
>>>>>| | |
>>>>>|============================================| |
>>>>>|ERROR | |
>>>>>| | |
>>>>> +--------------------------------------------+-------------- ---+
>>>>>
>>>>>My Outline view is blank as well. Anyway - I have beat my face against
>>>>>the monitor long enough to realize I don't know where to start looking
>>>>>on this one. If I place the same file in a Project in my workspace and
>>>>>open it, I get a proper editor with syntax highlighting and an Outline
>>>>>view. I can open other files associated with other editors (the CDT
>>>>>C-Editor for instance) with no issues, so obviously I have done
>>>>>something wrong in my editor implementation. Can any of the guru's
>
> here
>
>>>>>point me in the right direction?
>>>>>
>>>>>Thanks,
>>>>>Mark.
>>>
>>>
>>>
>
>
Re: Content of "ERROR" When Opening External File in my Editor [message #272803 is a reply to message #272794] Mon, 27 September 2004 16:29 Go to previous message
Eclipse UserFriend
Thanks...I have marked the Ant bug as a duplicate.

Darins

"Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
news:cj9nl0$roe$2@eclipse.org...
> Right. Also found this one:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=68734
>
> Thanks again,
> Mark.
>
> Darin Swanson wrote:
>
> > I believe you have hit the level of support defined by the framework for
> > external files.
> >
> > If you figure things out differently let me know
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=63127
> >
> > Darins
> >
> > "Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
> > news:cj9lfv$o9t$1@eclipse.org...
> >
> >>Hey Darin,
> >>
> >>Well, after much frustrating work on this, I finally re-read your post -
> >>this time with my eyes open... - and remembered that you mentioned a
> >>couple of extension points. After implementing the documentSetup one,
> >>things seemed to start clicking into place and I now have something that
> >>works with one exception.
> >>
> >>I can't seem to get a left gutter with line numbers to appear in any of
> >>my editors that are opened on an external file. I have the editor
> >>preference turned on to show line numbers, and it works fine for files
> >>in my workspace, but not external files. Toggling the preference
> >>doesn't make a difference. I'm going to dig into this one next, but any
> >>suggestions on where to start would be most welcome...
> >>
> >>Thanks again,
> >>Mark.
> >>
> >>Darin Swanson wrote:
> >>
> >>>I did the conversion of the Ant editor and the Java snippet editor and
I
> >>>know of no document.
> >>>I can offer up the Ant editor or the JavaSnippet editor as the
examples.
> >>>Two extension points that you are going to need to make use of are the:
> >>> org.eclipse.core.filebuffers.documentCreation
> >>> org.eclipse.core.filebuffers.documentSetup
> >>>See the Ant editor and the classes it makes use of to satisfy these
> >>>extensions to create the required factory and setup participant.
> >>>
> >>>HTH and I will keep an eye out for your questions
> >>>Darins
> >>>
> >>>"Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
> >>>news:civfti$ucv$1@eclipse.org...
> >>>
> >>>
> >>>>*sigh*
> >>>>
> >>>>This deserves another...
> >>>>
> >>>>**SIGH**
> >>>>
> >>>>It appears that all of the document providers for the editors in
Eclipse
> >>>>3.0 (Ant, Java, CDT) now subclass off of TextFileDocumentProvider to
> >>>>provide support for opening arbitrary files from the filesystem. This
> >>>>is completely different from previous versions and looks like a HUGE
> >>>>undertaking to convert my old FileDocumentProvider-based classes to
the
> >>>>new paradigm. It took me forever to figure this stuff out the last
> >
> > time!
> >
> >>>>I have been trying for the last 3 hours or so to get this to work, and
> >>>>while I can now open external files, all of my syntax highlighting and
> >>>>document partitioning is broken. Is there a document somewhere that
> >>>>describes how to do it the "new" way?
> >>>>
> >>>>Mark.
> >>>>
> >>>>Mark Melvin wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hi Everyone,
> >>>>>
> >>>>>I am trying to figure out why I cannot open an external file in my
> >>>>>editor. When I do, I get a blank Outline view, and the editor
contains
> >>>>>nothing but a single, horizontal blue line, followed by "ERROR". I
> >>>>>figured I would try my hand at an ASCII-art rendition of the problem
> >>>>>rather than post a screenshot. My editor looks like:
> >>>>>
> >>>>>+---------X-+ +--------X-+
> >>>>>| Filename | | Outline |
> >>>>> +--------------------------------------------+-------------- ---+
> >>>>>| | |
> >>>>>| | |
> >>>>>| | |
> >>>>>|============================================| |
> >>>>>|ERROR | |
> >>>>>| | |
> >>>>> +--------------------------------------------+-------------- ---+
> >>>>>
> >>>>>My Outline view is blank as well. Anyway - I have beat my face
against
> >>>>>the monitor long enough to realize I don't know where to start
looking
> >>>>>on this one. If I place the same file in a Project in my workspace
and
> >>>>>open it, I get a proper editor with syntax highlighting and an
Outline
> >>>>>view. I can open other files associated with other editors (the CDT
> >>>>>C-Editor for instance) with no issues, so obviously I have done
> >>>>>something wrong in my editor implementation. Can any of the guru's
> >
> > here
> >
> >>>>>point me in the right direction?
> >>>>>
> >>>>>Thanks,
> >>>>>Mark.
> >>>
> >>>
> >>>
> >
> >
Previous Topic:Eclipse 3.0.0 XP Install/Startup
Next Topic:Eclipse forms examples
Goto Forum:
  


Current Time: Sat Oct 25 13:45:03 EDT 2025

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

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

Back to the top