How to change hover background and foreground color in eclipse?

I am creating an eclipse plugin with a custom editor. I implemented a text freeze function in which the user was hovering over some text, then the text will be shown on a tooltip, for example javadocs.

How can I programmatically change the color of the tooltip and the color of the foreground?

+3
source share
1 answer

If your class ITextHoveralso implements ITextHoverExtension, you can provide IInformationControlCreatorin a method getHoverControlCreator().

You can use a simple IInformationControlCreatorone that simply returns an instance DefaultInformationControlas an information control. DefaultInformationControlhas methods setForegroundColorand setBackgroundColor.

+3
source

All Articles