Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Search results annotation doesn't show
Search results annotation doesn't show [message #290349] Wed, 24 August 2005 12:05 Go to next message
Eclipse UserFriend
Originally posted by: vlad_dumitrescu.hotmail.com

Hi gurus,

I hit a blind spot, please help me see the solution to this.

I have implemented an editor, that extends TextEditor. Most of the things
like line numbers work, however there are some weird thigs:
- print line isn't visible (I tried different colors)
- search results annotations show in the vertical ruler, but they are
not highlighted -- might it be an effect of my syntax highlighter? how can I
configure it to not overwrite other highlightings?
- likewise, current line isn't highlighted, probably same reason as
above.

I am grateful for any help. Thanks in advance,
Vlad
Re: Search results annotation doesn't show [message #290352 is a reply to message #290349] Wed, 24 August 2005 12:46 Go to previous messageGo to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
You should probably override
AbstractDecoratedTextEditor#initializeEditor and call
AbstractTextEditor#setPreferenceStore with a ChainedPreferenceStore that
reads through to the preference store obtained from
EditorsUI.getPreferenceStore().

-tom

Vlad Dumitrescu wrote:
> Hi gurus,
>
> I hit a blind spot, please help me see the solution to this.
>
> I have implemented an editor, that extends TextEditor. Most of the things
> like line numbers work, however there are some weird thigs:
> - print line isn't visible (I tried different colors)
> - search results annotations show in the vertical ruler, but they are
> not highlighted -- might it be an effect of my syntax highlighter? how can I
> configure it to not overwrite other highlightings?
> - likewise, current line isn't highlighted, probably same reason as
> above.
>
> I am grateful for any help. Thanks in advance,
> Vlad
>
>
Re: Search results annotation doesn't show [message #290387 is a reply to message #290352] Wed, 24 August 2005 18:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vlad_dumitrescu.hotmail.com

Thanks a lot for the tip, but it's something else. I tried that and it still
doesn't work.

What happens is that preferences that refer to the ruler or showing line
numbers work fine. Anything that refers to the editor area isn't, except
text/selection bg and fg.

I disabled the syntax highlighting, so it isn't interfering.

Where do I have to look?

/Vlad


"Tom Eicher" <eclipse@tom.eicher.name> skrev i meddelandet
news:dehq6l$crg$1@news.eclipse.org...
> You should probably override AbstractDecoratedTextEditor#initializeEditor
> and call AbstractTextEditor#setPreferenceStore with a
> ChainedPreferenceStore that reads through to the preference store obtained
> from EditorsUI.getPreferenceStore().
>
> -tom
>
> Vlad Dumitrescu wrote:
>> Hi gurus,
>>
>> I hit a blind spot, please help me see the solution to this.
>>
>> I have implemented an editor, that extends TextEditor. Most of the things
>> like line numbers work, however there are some weird thigs:
>> - print line isn't visible (I tried different colors)
>> - search results annotations show in the vertical ruler, but they are
>> not highlighted -- might it be an effect of my syntax highlighter? how
>> can I
>> configure it to not overwrite other highlightings?
>> - likewise, current line isn't highlighted, probably same reason as
>> above.
>>
>> I am grateful for any help. Thanks in advance,
>> Vlad
>>
Re: Search results annotation doesn't show [message #290411 is a reply to message #290387] Thu, 25 August 2005 09:04 Go to previous messageGo to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
Vlad wrote:
> What happens is that preferences that refer to the ruler or showing line
> numbers work fine. Anything that refers to the editor area isn't, except
> text/selection bg and fg.
>
> I disabled the syntax highlighting, so it isn't interfering.
>
> Where do I have to look?

SourceViewerDecorationSupport manages the drawing of all decorations in
the editor area, including print margin (via MarginPainter), current
line highlighting (via CursorLinePainter) and annotations (via
AnnotationPainter).

You should check whether the SourceViewerDecorationSupport instance in
AbstractDecoratedTextEditor support is configured properly.

-tom
Re: Search results annotation doesn't show [message #290420 is a reply to message #290411] Thu, 25 August 2005 11:35 Go to previous message
Eclipse UserFriend
Originally posted by: vlad_dumitrescu.hotmail.com

> You should check whether the SourceViewerDecorationSupport instance in
> AbstractDecoratedTextEditor support is configured properly.

Thanks! I had a nasty misspelling there, so it was the wrong object that was
configured... works like a charm now.

/Vlad
Previous Topic:indentation problem in inserting code
Next Topic:Executing Help from Toolbar Action
Goto Forum:
  


Current Time: Sat May 11 18:15:33 GMT 2024

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

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

Back to the top