Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ISharedTextColors implementation
ISharedTextColors implementation [message #445258] Fri, 29 October 2004 19:58 Go to next message
Nick Brett is currently offline Nick BrettFriend
Messages: 5
Registered: July 2009
Junior Member
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 16:34 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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 17:06 Go to previous message
Nick Brett is currently offline Nick BrettFriend
Messages: 5
Registered: July 2009
Junior Member
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: Thu Apr 25 08:25:19 GMT 2024

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

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

Back to the top