Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ISharedTextColors implementation
ISharedTextColors implementation [message #445258] Fri, 29 October 2004 15:58 Go to next message
Eclipse UserFriend
Hi,

I'm trying to create a simple editor for some code. I'm using a
SourceViewer and I need to pass an IVerticalRuler on it's constructor.

Now I was looking to use an OverviewRuler so I could display annotations
in the ruler but to create an OverviewRuler I need to pass an
ISharedTextColors.

The problem is, is that I can't find a public implementation of
ISharedTextColors.

All I can find is the
org.eclipse.ui.internal.editors.text.SharedTextColors class.

Am I meant to implement this class myself, or rely on the internal
implementation? From the interface it looks like framework code should
provide an implementation?

Any help would be appreciated.
Cheers.

Nick.
Re: ISharedTextColors implementation [message #445286 is a reply to message #445258] Mon, 01 November 2004 11:34 Go to previous messageGo to next message
Eclipse UserFriend
If you don't get a good answer here then you should ask this in the
eclipse.platform newsgroup.

Grant

"Nick Brett" <nb271@cam.ac.uk> wrote in message
news:4182A0D9.7000300@cam.ac.uk...
> Hi,
>
> I'm trying to create a simple editor for some code. I'm using a
> SourceViewer and I need to pass an IVerticalRuler on it's constructor.
>
> Now I was looking to use an OverviewRuler so I could display annotations
> in the ruler but to create an OverviewRuler I need to pass an
> ISharedTextColors.
>
> The problem is, is that I can't find a public implementation of
> ISharedTextColors.
>
> All I can find is the
> org.eclipse.ui.internal.editors.text.SharedTextColors class.
>
> Am I meant to implement this class myself, or rely on the internal
> implementation? From the interface it looks like framework code should
> provide an implementation?
>
> Any help would be appreciated.
> Cheers.
>
> Nick.
Re: ISharedTextColors implementation [message #445290 is a reply to message #445286] Mon, 01 November 2004 12:06 Go to previous message
Eclipse UserFriend
Thanks Grant.

I've just posted it up there as well.

Sorry if I got it in the wrong place.

Nick.

Grant Gayed wrote:
> If you don't get a good answer here then you should ask this in the
> eclipse.platform newsgroup.
>
> Grant
>
> "Nick Brett" <nb271@cam.ac.uk> wrote in message
> news:4182A0D9.7000300@cam.ac.uk...
>
>>Hi,
>>
>>I'm trying to create a simple editor for some code. I'm using a
>>SourceViewer and I need to pass an IVerticalRuler on it's constructor.
>>
>>Now I was looking to use an OverviewRuler so I could display annotations
>>in the ruler but to create an OverviewRuler I need to pass an
>>ISharedTextColors.
>>
>>The problem is, is that I can't find a public implementation of
>>ISharedTextColors.
>>
>>All I can find is the
>>org.eclipse.ui.internal.editors.text.SharedTextColors class.
>>
>>Am I meant to implement this class myself, or rely on the internal
>>implementation? From the interface it looks like framework code should
>>provide an implementation?
>>
>>Any help would be appreciated.
>>Cheers.
>>
>>Nick.
>
>
>
Previous Topic:TableViewer & table cell color
Next Topic:Can't get Bidi to work like StyledText
Goto Forum:
  


Current Time: Mon Jul 14 23:58:32 EDT 2025

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

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

Back to the top